<!DOCTYPE html><html><head><title>Ext.data.Store | Ext JS 4.0 Documentation</title><script type="text/javascript" src="../ext-all.js"></script><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../scrollbars.css" type="text/css"><link rel="stylesheet" href="../docs.css" type="text/css"><link id="styleCss" rel="stylesheet" href="../style.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script><link rel="stylesheet" href="../prettify.css" type="text/css"><!-- link(rel: 'stylesheet', href: req.baseURL + '/css/ext4.css', type: 'text/css')--><link rel="shortcut icon" type="image/ico" href="../favicon.ico"><!--[if IE]>
<style type="text/css">.head-band { display: none; }
.header { border: 0; top: 0; left: 0px; background: url(../header.gif) repeat-x; }
.doc-tab .members .member a.more { background-color: #efefef; }
</style><link rel="stylesheet" href="/new/css/ie.css" type="text/css"><![endif]-->
</head><body id="ext-body" class="iScroll"><div id="notice" class="notice">For up to date documentation and features, visit 
<a href="http://docs.sencha.com/ext-js/4-0">http://docs.sencha.com/ext-js/4-0</a></div><div class="wrapper"><div class="head-band"></div><div class="header"><h2><a href="../index.html">Sencha Documentation</a></h2></div><div id="search"><form><input type="text" placeholder="Search" id="search-field" autocomplete="off" name="q"></form><div id="search-box"></div></div><div id="treePanel"></div><div id="container"><script type="text/javascript">

    req = {
        liveURL: '.',
        standAloneMode: true,
        origDocClass: 'Ext.data.Store',
        docClass: 'Ext.data.Store',
        docReq: 'Ext.data.Store',
        version: '4.0',
        baseURL: '.',
        baseDocURL: '.',
        baseProdURL: '.'
    };

    clsInfo = {};



</script>

<script type="text/javascript" src="../search.js"></script>
<!--script type="text/javascript" src="/new/javascripts/app/examples.js"></script-->
<script type="text/javascript" src="../class_tree.js"></script>
<script type="text/javascript" src="../class_doc.js"></script>
<script type="text/javascript">
    req.source = 'Store2.html#Ext-data.Store';
    clsInfo = {"methods":["Store","add","addEvents","addListener","addManagedListener","aggregate","average","capture","clearFilter","clearGrouping","clearListeners","clearManagedListeners","collect","count","each","enableBubble","filter","filterBy","find","findBy","findExact","findRecord","fireEvent","first","getAt","getById","getCount","getGroupString","getGroups","getNewRecords","getPageFromRecordIndex","getProxy","getRange","getSortState","getTotalCount","getUpdatedRecords","group","guaranteeRange","hasListener","hasPendingRequests","indexOf","indexOfId","indexOfTotal","initSortable","insert","isFiltered","isGrouped","isLoading","last","load","loadData","loadPage","loadRecords","max","min","nextPage","observe","on","prefetch","prefetchPage","previousPage","purgeRecords","queryBy","relayEvents","releaseCapture","remove","removeAll","removeAt","removeListener","removeManagedListener","resumeEvents","setProxy","sort","sum","suspendEvents","sync","un"],"cfgs":["autoLoad","autoSync","buffered","clearOnPageLoad","data","fields","listeners","model","proxy","purgePageCount","remoteFilter","remoteGroup","remoteSort","sortOnFilter","storeId"],"properties":["","batchUpdateMode","currentPage","data","defaultProxyType","defaultSortDirection","filterOnLoad","filters","groupDir","groupField","groupers","isDestroyed","isSortable","pageSize","removeAll","snapshot","sortOnLoad","sortRoot","sorters"],"events":["add","beforeload","beforeprefetch","beforesync","clear","datachanged","groupchange","load","remove","update"],"subclasses":["Ext.grid.property.Store","Ext.data.ArrayStore","Ext.data.BufferStore","Ext.data.DirectStore","Ext.data.JsonPStore","Ext.data.JsonStore","Ext.data.XmlStore"]};
    Ext.onReady(function() {
        Ext.create('Docs.classPanel');
    });
</script><div id="top-block" class="top-block"><h1 id="clsTitle" class="cls"><a href="../source/Store2.html#Ext-data.Store" target="_blank">Ext.data.Store</a></h1></div><div id="docContent"><div id="doc-overview-content"><div class="lft"><pre class="subclasses"><h4>Hierarchy</h4><div class="subclass f"><a href="Ext.data.AbstractStore.html" rel="Ext.data.AbstractStore" class="cls docClass">Ext.data.AbstractStore</a><div class="subclass"><strong>Ext.data.Store</strong></div></div><h4>Mixins</h4><div class="mixin"><a href="Ext.util.Observable.html" rel="Ext.util.Observable" class="cls docClass">Ext.util.Observable</a></div><div class="mixin"><a href="Ext.util.Sortable.html" rel="Ext.util.Sortable" class="cls docClass">Ext.util.Sortable</a></div></pre><p>The Store class encapsulates a client side cache of <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a> objects. Stores load
data via a <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Proxy</a>, and also provide functions for <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sorting</a>,
<a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filtering</a> and querying the <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">model</a> instances contained within it.</p>




<p>Creating a Store is easy - we just tell it the Model and the Proxy to use to load and save its data:</p>




<pre class="prettyprint"><code>// Set up a <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">model</a> to use in our Store
Ext.define('User', {
    extend: 'Ext.data.Model',
    fields: [
        {name: 'firstName', type: 'string'},
        {name: 'lastName',  type: 'string'},
        {name: 'age',       type: 'int'},
        {name: 'eyeColor',  type: 'string'}
    ]
});

var myStore = new Ext.data.Store({
    model: 'User',
    proxy: {
        type: 'ajax',
        url : '/users.json',
        reader: {
            type: 'json',
            root: 'users'
        }
    },
    autoLoad: true
});
</code></pre>




<p>In the example above we configured an AJAX proxy to load data from the url '/users.json'. We told our Proxy
to use a <a href="Ext.data.reader.Json.html" rel="Ext.data.reader.Json" class="docClass">JsonReader</a> to parse the response from the server into Model object -
<a href="Ext.data.reader.Json.html" rel="Ext.data.reader.Json" class="docClass">see the docs on JsonReader</a> for details.</p>




<p><u>Inline data</u></p>




<p>Stores can also load data inline. Internally, Store converts each of the objects we pass in as <a href="Ext.data.Store.html#data" rel="Ext.data.Store#data" class="docClass">data</a>
into Model instances:</p>




<pre class="prettyprint"><code>new Ext.data.Store({
    model: 'User',
    data : [
        {firstName: 'Ed',    lastName: 'Spencer'},
        {firstName: 'Tommy', lastName: 'Maintz'},
        {firstName: 'Aaron', lastName: 'Conran'},
        {firstName: 'Jamie', lastName: 'Avins'}
    ]
});
</code></pre>




<p>Loading inline data using the method above is great if the data is in the correct format already (e.g. it doesn't need
to be processed by a <a href="Ext.data.reader.Reader.html" rel="Ext.data.reader.Reader" class="docClass">reader</a>). If your inline data requires processing to decode the data structure,
use a <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">MemoryProxy</a> instead (see the <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">MemoryProxy</a> docs for an example).</p>




<p>Additional data can also be loaded locally using <a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a>.</p>




<p><u>Loading Nested Data</u></p>




<p>Applications often need to load sets of associated data - for example a CRM system might load a User and her Orders.
Instead of issuing an AJAX request for the User and a series of additional AJAX requests for each Order, we can load a nested dataset
and allow the Reader to automatically populate the associated models. Below is a brief example, see the <a href="Ext.data.reader.Reader.html" rel="Ext.data.reader.Reader" class="docClass">Ext.data.reader.Reader</a> intro
docs for a full explanation:</p>




<pre class="prettyprint"><code>var store = new Ext.data.Store({
    autoLoad: true,
    model: "User",
    proxy: {
        type: 'ajax',
        url : 'users.json',
        reader: {
            type: 'json',
            root: 'users'
        }
    }
});
</code></pre>




<p>Which would consume a response like this:</p>




<pre class="prettyprint"><code>{
    "users": [
        {
            "id": 1,
            "name": "Ed",
            "orders": [
                {
                    "id": 10,
                    "total": 10.76,
                    "status": "invoiced"
                },
                {
                    "id": 11,
                    "total": 13.45,
                    "status": "shipped"
                }
            ]
        }
    ]
}
</code></pre>




<p>See the <a href="Ext.data.reader.Reader.html" rel="Ext.data.reader.Reader" class="docClass">Ext.data.reader.Reader</a> intro docs for a full explanation.</p>




<p><u>Filtering and Sorting</u></p>




<p>Stores can be sorted and filtered - in both cases either remotely or locally. The <a href="Ext.data.Store.html#sorters" rel="Ext.data.Store#sorters" class="docClass">sorters</a> and <a href="Ext.data.Store.html#filters" rel="Ext.data.Store#filters" class="docClass">filters</a> are
held inside <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">MixedCollection</a> instances to make them easy to manage. Usually it is sufficient to
either just specify sorters and filters in the Store configuration or call <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a> or <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filter</a>:

<pre class="prettyprint"><code>var store = new Ext.data.Store({
    model: 'User',
    sorters: [
        {
            property : 'age',
            direction: 'DESC'
        },
        {
            property : 'firstName',
            direction: 'ASC'
        }
    ],

    filters: [
        {
            property: 'firstName',
            value   : /Ed/
        }
    ]
});
</code></pre>

<p>The new Store will keep the configured sorters and filters in the MixedCollection instances mentioned above. By default, sorting
and filtering are both performed locally by the Store - see <a href="Ext.data.Store.html#remoteSort" rel="Ext.data.Store#remoteSort" class="docClass">remoteSort</a> and <a href="Ext.data.Store.html#remoteFilter" rel="Ext.data.Store#remoteFilter" class="docClass">remoteFilter</a> to allow the server to
perform these operations instead.</p>

<p>Filtering and sorting after the Store has been instantiated is also easy. Calling <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filter</a> adds another filter to the Store
and automatically filters the dataset (calling <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filter</a> with no arguments simply re-applies all existing filters). Note that by
default <a href="Ext.data.Store.html#sortOnFilter" rel="Ext.data.Store#sortOnFilter" class="docClass">sortOnFilter</a> is set to true, which means that your sorters are automatically reapplied if using local sorting.</p>

<pre class="prettyprint"><code>store.filter('eyeColor', 'Brown');
</code></pre>

<p>Change the sorting at any time by calling <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a>:</p>

<pre class="prettyprint"><code>store.sort('height', 'ASC');
</code></pre>

<p>Note that all existing sorters will be removed in favor of the new sorter data (if <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a> is called with no arguments,
the existing sorters are just reapplied instead of being removed). To keep existing sorters and add new ones, just add them
to the MixedCollection:</p>

<pre class="prettyprint"><code>store.sorters.add(new Ext.util.Sorter({
    property : 'shoeSize',
    direction: 'ASC'
}));

store.sort();
</code></pre>

<p><u>Registering with StoreManager</u></p>

<p>Any Store that is instantiated with a <a href="Ext.data.Store.html#storeId" rel="Ext.data.Store#storeId" class="docClass">storeId</a> will automatically be registed with the <a href="Ext.data.StoreManager.html" rel="Ext.data.StoreManager" class="docClass">StoreManager</a>.
This makes it easy to reuse the same store in multiple views:</p>

 
<pre class="prettyprint"><code>//this store can be used several times
new Ext.data.Store({
    model: 'User',
    storeId: 'usersStore'
});

new Ext.List({
    store: 'usersStore',

    //other config goes here
});

new Ext.view.View({
    store: 'usersStore',

    //other config goes here
});
</code></pre>

<p><u>Further Reading</u></p>

<p>Stores are backed up by an ecosystem of classes that enables their operation. To gain a full understanding of these
pieces and how they fit together, see:</p>

<ul style="list-style-type: disc; padding-left: 25px">
<li><a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Proxy</a> - overview of what Proxies are and how they are used</li>
<li><a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a> - the core class in the data package</li>
<li><a href="Ext.data.reader.Reader.html" rel="Ext.data.reader.Reader" class="docClass">Reader</a> - used by any subclass of <a href="Ext.data.proxy.Server.html" rel="Ext.data.proxy.Server" class="docClass">ServerProxy</a> to read a response</li>
</ul>

<div class="members"><div class="m-cfgs"><div class="definedBy">Defined By</div><a name="configs"></a><h3 class="cfg p">Config Options</h3><h4 class="cfgGroup">Other Configs</h4><div id="config-autoLoad" class="member f inherited"><a href="Ext.data.Store.html#config-autoLoad" rel="config-autoLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-autoLoad" class="viewSource">view source</a></div><a name="autoLoad"></a><a name="config-autoLoad"></a><a href="Ext.data.Store.html#" rel="config-autoLoad" class="cls expand">autoLoad</a><span> : Boolean/Object</span></div><div class="description"><div class="short">If data is not specified, and if autoLoad is true or an Object, this store's load method
is automatically called afte...</div><div class="long"><p>If data is not specified, and if autoLoad is true or an Object, this store's load method
is automatically called after creation. If the value of autoLoad is an Object, this Object will be passed to the store's
load method. Defaults to false.</p>
</div></div></div><div id="config-autoSync" class="member inherited"><a href="Ext.data.Store.html#config-autoSync" rel="config-autoSync" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-autoSync" class="viewSource">view source</a></div><a name="autoSync"></a><a name="config-autoSync"></a><a href="Ext.data.Store.html#" rel="config-autoSync" class="cls expand">autoSync</a><span> : Boolean</span></div><div class="description"><div class="short"><p>True to automatically sync the Store with its Proxy after every edit to one of its Records.
Defaults to false.</p>
</div><div class="long"><p>True to automatically sync the Store with its Proxy after every edit to one of its Records.
Defaults to false.</p>
</div></div></div><div id="config-buffered" class="member ni"><a href="Ext.data.Store.html#config-buffered" rel="config-buffered" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-buffered" class="viewSource">view source</a></div><a name="buffered"></a><a name="config-buffered"></a><a href="Ext.data.Store.html#" rel="config-buffered" class="cls expand">buffered</a><span> : Boolean</span></div><div class="description"><div class="short">Allow the store to buffer and pre-fetch pages of records. This is to be used in conjunction with a view will
tell the...</div><div class="long"><p>Allow the store to buffer and pre-fetch pages of records. This is to be used in conjunction with a view will
tell the store to pre-fetch records ahead of a time.</p>
</div></div></div><div id="config-clearOnPageLoad" class="member ni"><a href="Ext.data.Store.html#config-clearOnPageLoad" rel="config-clearOnPageLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-clearOnPageLoad" class="viewSource">view source</a></div><a name="clearOnPageLoad"></a><a name="config-clearOnPageLoad"></a><a href="Ext.data.Store.html#" rel="config-clearOnPageLoad" class="cls expand">clearOnPageLoad</a><span> : Boolean</span></div><div class="description"><div class="short">True to empty the store when loading another page via loadPage,
nextPage or previousPage (defaults to true). Setting ...</div><div class="long"><p>True to empty the store when loading another page via <a href="Ext.data.Store.html#loadPage" rel="Ext.data.Store#loadPage" class="docClass">loadPage</a>,
<a href="Ext.data.Store.html#nextPage" rel="Ext.data.Store#nextPage" class="docClass">nextPage</a> or <a href="Ext.data.Store.html#previousPage" rel="Ext.data.Store#previousPage" class="docClass">previousPage</a> (defaults to true). Setting to false keeps existing records, allowing
large data sets to be loaded one page at a time but rendered all together.</p>
</div></div></div><div id="config-data" class="member ni"><a href="Ext.data.Store.html#config-data" rel="config-data" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-data" class="viewSource">view source</a></div><a name="data"></a><a name="config-data"></a><a href="Ext.data.Store.html#" rel="config-data" class="cls expand">data</a><span> : Array</span></div><div class="description"><div class="short"><p>Optional array of Model instances or data objects to load locally. See "Inline data" above for details.</p>
</div><div class="long"><p>Optional array of Model instances or data objects to load locally. See "Inline data" above for details.</p>
</div></div></div><div id="config-fields" class="member inherited"><a href="Ext.data.Store.html#config-fields" rel="config-fields" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-fields" class="viewSource">view source</a></div><a name="fields"></a><a name="config-fields"></a><a href="Ext.data.Store.html#" rel="config-fields" class="cls expand">fields</a><span> : Array</span></div><div class="description"><div class="short">This may be used in place of specifying a model configuration. The fields should be a
set of Ext.data.Field configura...</div><div class="long"><p>This may be used in place of specifying a <a href="Ext.data.Store.html#model" rel="Ext.data.Store#model" class="docClass">model</a> configuration. The fields should be a
set of <a href="Ext.data.Field.html" rel="Ext.data.Field" class="docClass">Ext.data.Field</a> configuration objects. The store will automatically create a <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a>
with these fields. In general this configuration option should be avoided, it exists for the purposes of
backwards compatibility. For anything more complicated, such as specifying a particular id property or
assocations, a <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> should be defined and specified for the <a href="Ext.data.Store.html#model" rel="Ext.data.Store#model" class="docClass">model</a> config.</p>
</div></div></div><div id="config-listeners" class="member inherited"><a href="Ext.data.Store.html#config-listeners" rel="config-listeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-cfg-listeners" class="viewSource">view source</a></div><a name="listeners"></a><a name="config-listeners"></a><a href="Ext.data.Store.html#" rel="config-listeners" class="cls expand">listeners</a><span> : Object</span></div><div class="description"><div class="short">(optional) A config object containing one or more event handlers to be added to this
object during initialization.  T...</div><div class="long"><p>(optional) <p>A config object containing one or more event handlers to be added to this
object during initialization.  This should be a valid listeners config object as specified in the
<a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a> example for attaching multiple handlers at once.</p></p>

<br><p><b><u>DOM events from ExtJs <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a></u></b></p>


<br><p>While <i>some</i> ExtJs Component classes export selected DOM events (e.g. "click", "mouseover" etc), this


<p>is usually only done when extra value can be added. For example the <a href="Ext.view.View.html" rel="Ext.view.View" class="docClass">DataView</a>'s
<b><code><a href="Ext.view.View.html#click" rel="Ext.view.View#click" class="docClass">click</a></code></b> event passing the node clicked on. To access DOM
events directly from a child element of a Component, we need to specify the <code>element</code> option to
identify the Component property to add a DOM listener to:</p>

<pre><code>new Ext.panel.Panel({
    width: 400,
    height: 200,
    dockedItems: [{
        xtype: 'toolbar'
    }],
    listeners: {
        click: {
            element: 'el', //bind to the underlying el property on the panel
            fn: function(){ console.log('click el'); }
        },
        dblclick: {
            element: 'body', //bind to the underlying body property on the panel
            fn: function(){ console.log('dblclick body'); }
        }
    }
});
</code></pre>


<p></p></p>
</div></div></div><div id="config-model" class="member ni"><a href="Ext.data.Store.html#config-model" rel="config-model" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-model" class="viewSource">view source</a></div><a name="model"></a><a name="config-model"></a><a href="Ext.data.Store.html#" rel="config-model" class="cls expand">model</a><span> : String</span></div><div class="description"><div class="short"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> associated with this store</p>
</div><div class="long"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> associated with this store</p>
</div></div></div><div id="config-proxy" class="member ni"><a href="Ext.data.Store.html#config-proxy" rel="config-proxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-proxy" class="viewSource">view source</a></div><a name="proxy"></a><a name="config-proxy"></a><a href="Ext.data.Store.html#" rel="config-proxy" class="cls expand">proxy</a><span> : String/Ext.data.proxy.Proxy/Object</span></div><div class="description"><div class="short">The Proxy to use for this Store. This can be either a string, a config
object or a Proxy instance - see setProxy for ...</div><div class="long"><p>The Proxy to use for this Store. This can be either a string, a config
object or a Proxy instance - see <a href="Ext.data.Store.html#setProxy" rel="Ext.data.Store#setProxy" class="docClass">setProxy</a> for details.</p>
</div></div></div><div id="config-purgePageCount" class="member ni"><a href="Ext.data.Store.html#config-purgePageCount" rel="config-purgePageCount" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-purgePageCount" class="viewSource">view source</a></div><a name="purgePageCount"></a><a name="config-purgePageCount"></a><a href="Ext.data.Store.html#" rel="config-purgePageCount" class="cls expand">purgePageCount</a><span> : Number</span></div><div class="description"><div class="short">The number of pages to keep in the cache before purging additional records. A value of 0 indicates to never purge the...</div><div class="long"><p>The number of pages to keep in the cache before purging additional records. A value of 0 indicates to never purge the prefetched data.
This option is only relevant when the <a href="Ext.data.Store.html#buffered" rel="Ext.data.Store#buffered" class="docClass">buffered</a> option is set to true.</p>
</div></div></div><div id="config-remoteFilter" class="member ni"><a href="Ext.data.Store.html#config-remoteFilter" rel="config-remoteFilter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-remoteFilter" class="viewSource">view source</a></div><a name="remoteFilter"></a><a name="config-remoteFilter"></a><a href="Ext.data.Store.html#" rel="config-remoteFilter" class="cls expand">remoteFilter</a><span> : Boolean</span></div><div class="description"><div class="short">True to defer any filtering operation to the server. If false, filtering is done locally on the client. Defaults to f...</div><div class="long"><p>True to defer any filtering operation to the server. If false, filtering is done locally on the client. Defaults to <tt>false</tt>.</p>
</div></div></div><div id="config-remoteGroup" class="member ni"><a href="Ext.data.Store.html#config-remoteGroup" rel="config-remoteGroup" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-remoteGroup" class="viewSource">view source</a></div><a name="remoteGroup"></a><a name="config-remoteGroup"></a><a href="Ext.data.Store.html#" rel="config-remoteGroup" class="cls expand">remoteGroup</a><span> : Boolean</span></div><div class="description"><div class="short">True if the grouping should apply on the server side, false if it is local only (defaults to false).  If the
grouping...</div><div class="long"><p>True if the grouping should apply on the server side, false if it is local only (defaults to false).  If the
grouping is local, it can be applied immediately to the data.  If it is remote, then it will simply act as a
helper, automatically sending the grouping information to the server.</p>
</div></div></div><div id="config-remoteSort" class="member ni"><a href="Ext.data.Store.html#config-remoteSort" rel="config-remoteSort" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-remoteSort" class="viewSource">view source</a></div><a name="remoteSort"></a><a name="config-remoteSort"></a><a href="Ext.data.Store.html#" rel="config-remoteSort" class="cls expand">remoteSort</a><span> : Boolean</span></div><div class="description"><div class="short"><p>True to defer any sorting operation to the server. If false, sorting is done locally on the client. Defaults to <tt>false</tt>.</p>
</div><div class="long"><p>True to defer any sorting operation to the server. If false, sorting is done locally on the client. Defaults to <tt>false</tt>.</p>
</div></div></div><div id="config-sortOnFilter" class="member ni"><a href="Ext.data.Store.html#config-sortOnFilter" rel="config-sortOnFilter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-sortOnFilter" class="viewSource">view source</a></div><a name="sortOnFilter"></a><a name="config-sortOnFilter"></a><a href="Ext.data.Store.html#" rel="config-sortOnFilter" class="cls expand">sortOnFilter</a><span> : Boolean</span></div><div class="description"><div class="short">For local filtering only, causes sort to be called whenever filter is called,
causing the sorters to be reapplied aft...</div><div class="long"><p>For local filtering only, causes <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a> to be called whenever <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filter</a> is called,
causing the sorters to be reapplied after filtering. Defaults to true</p>
</div></div></div><div id="config-storeId" class="member inherited"><a href="Ext.data.Store.html#config-storeId" rel="config-storeId" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-storeId" class="viewSource">view source</a></div><a name="storeId"></a><a name="config-storeId"></a><a href="Ext.data.Store.html#" rel="config-storeId" class="cls expand">storeId</a><span> : String</span></div><div class="description"><div class="short">Optional unique identifier for this store. If present, this Store will be registered with
the Ext.data.StoreManager, ...</div><div class="long"><p>Optional unique identifier for this store. If present, this Store will be registered with
the <a href="Ext.data.StoreManager.html" rel="Ext.data.StoreManager" class="docClass">Ext.data.StoreManager</a>, making it easy to reuse elsewhere. Defaults to undefined.</p>
</div></div></div></div><div class="m-properties"><a name="properties"></a><div class="definedBy">Defined By</div><h3 class="prp p">Properties</h3><div id="property-" class="member f ni"><a href="Ext.data.Store.html#property-" rel="property-" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-" class="viewSource">view source</a></div><a></a><a name="property-"></a><a href="Ext.data.Store.html#" rel="property-" class="cls expand"></a><span> : Object</span></div><div class="description"><div class="short">Loop over each record returned from the server. Assume they are
returned in order of how they were sent. If we find a...</div><div class="long"><p>Loop over each record returned from the server. Assume they are
returned in order of how they were sent. If we find a matching
record, replace it with the newly created one.</p>
</div></div></div><div id="property-batchUpdateMode" class="member inherited"><a href="Ext.data.Store.html#property-batchUpdateMode" rel="property-batchUpdateMode" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-batchUpdateMode" class="viewSource">view source</a></div><a name="batchUpdateMode"></a><a name="property-batchUpdateMode"></a><a href="Ext.data.Store.html#" rel="property-batchUpdateMode" class="cls expand">batchUpdateMode</a><span> : String</span></div><div class="description"><div class="short">Sets the updating behavior based on batch synchronization. 'operation' (the default) will update the Store's
internal...</div><div class="long"><p>Sets the updating behavior based on batch synchronization. 'operation' (the default) will update the Store's
internal representation of the data after each operation of the batch has completed, 'complete' will wait until
the entire batch has been completed before updating the Store's data. 'complete' is a good choice for local
storage proxies, 'operation' is better for remote proxies, where there is a comparatively high latency.</p>
</div></div></div><div id="property-currentPage" class="member ni"><a href="Ext.data.Store.html#property-currentPage" rel="property-currentPage" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-currentPage" class="viewSource">view source</a></div><a name="currentPage"></a><a name="property-currentPage"></a><a href="Ext.data.Store.html#" rel="property-currentPage" class="cls expand">currentPage</a><span> : Number</span></div><div class="description"><div class="short"><p>The page that the Store has most recently loaded (see <a href="Ext.data.Store.html#loadPage" rel="Ext.data.Store#loadPage" class="docClass">loadPage</a>)</p>
</div><div class="long"><p>The page that the Store has most recently loaded (see <a href="Ext.data.Store.html#loadPage" rel="Ext.data.Store#loadPage" class="docClass">loadPage</a>)</p>
</div></div></div><div id="property-data" class="member ni"><a href="Ext.data.Store.html#property-data" rel="property-data" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-data" class="viewSource">view source</a></div><a name="data"></a><a name="property-data"></a><a href="Ext.data.Store.html#" rel="property-data" class="cls expand">data</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The MixedCollection that holds this store's local cache of records</p>
</div><div class="long"><p>The MixedCollection that holds this store's local cache of records</p>
</div></div></div><div id="property-defaultProxyType" class="member inherited"><a href="Ext.data.Store.html#property-defaultProxyType" rel="property-defaultProxyType" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-defaultProxyType" class="viewSource">view source</a></div><a name="defaultProxyType"></a><a name="property-defaultProxyType"></a><a href="Ext.data.Store.html#" rel="property-defaultProxyType" class="cls expand">defaultProxyType</a><span> : String</span></div><div class="description"><div class="short"><p>The string type of the Proxy to create if none is specified. This defaults to creating a <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">memory proxy</a>.</p>
</div><div class="long"><p>The string type of the Proxy to create if none is specified. This defaults to creating a <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">memory proxy</a>.</p>
</div></div></div><div id="property-defaultSortDirection" class="member inherited"><a href="Ext.data.Store.html#property-defaultSortDirection" rel="property-defaultSortDirection" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-defaultSortDirection" class="viewSource">view source</a></div><a name="defaultSortDirection"></a><a name="property-defaultSortDirection"></a><a href="Ext.data.Store.html#" rel="property-defaultSortDirection" class="cls expand">defaultSortDirection</a><span> : String</span></div><div class="description"><div class="short"><p>The default sort direction to use if one is not specified (defaults to "ASC")</p>
</div><div class="long"><p>The default sort direction to use if one is not specified (defaults to "ASC")</p>
</div></div></div><div id="property-filterOnLoad" class="member inherited"><a href="Ext.data.Store.html#property-filterOnLoad" rel="property-filterOnLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-filterOnLoad" class="viewSource">view source</a></div><a name="filterOnLoad"></a><a name="property-filterOnLoad"></a><a href="Ext.data.Store.html#" rel="property-filterOnLoad" class="cls expand">filterOnLoad</a><span> : Boolean</span></div><div class="description"><div class="short">If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired.
De...</div><div class="long"><p>If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired.
Defaults to true, ignored if <a href="Ext.data.Store.html#remoteFilter" rel="Ext.data.Store#remoteFilter" class="docClass">remoteFilter</a> is true</p>
</div></div></div><div id="property-filters" class="member inherited"><a href="Ext.data.Store.html#property-filters" rel="property-filters" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-filters" class="viewSource">view source</a></div><a name="filters"></a><a name="property-filters"></a><a href="Ext.data.Store.html#" rel="property-filters" class="cls expand">filters</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filters</a> currently applied to this Store</p>
</div><div class="long"><p>The collection of <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filters</a> currently applied to this Store</p>
</div></div></div><div id="property-groupDir" class="member ni"><a href="Ext.data.Store.html#property-groupDir" rel="property-groupDir" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-groupDir" class="viewSource">view source</a></div><a name="groupDir"></a><a name="property-groupDir"></a><a href="Ext.data.Store.html#" rel="property-groupDir" class="cls expand">groupDir</a><span> : String</span></div><div class="description"><div class="short"><p>The direction in which sorting should be applied when grouping. Defaults to "ASC" - the other supported value is "DESC"</p>
</div><div class="long"><p>The direction in which sorting should be applied when grouping. Defaults to "ASC" - the other supported value is "DESC"</p>
</div></div></div><div id="property-groupField" class="member ni"><a href="Ext.data.Store.html#property-groupField" rel="property-groupField" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-groupField" class="viewSource">view source</a></div><a name="groupField"></a><a name="property-groupField"></a><a href="Ext.data.Store.html#" rel="property-groupField" class="cls expand">groupField</a><span> : String</span></div><div class="description"><div class="short">The (optional) field by which to group data in the store. Internally, grouping is very similar to sorting - the
group...</div><div class="long"><p>The (optional) field by which to group data in the store. Internally, grouping is very similar to sorting - the
groupField and <a href="Ext.data.Store.html#groupDir" rel="Ext.data.Store#groupDir" class="docClass">groupDir</a> are injected as the first sorter (see <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a>). Stores support a single
level of grouping, and groups can be fetched via the <a href="Ext.data.Store.html#getGroups" rel="Ext.data.Store#getGroups" class="docClass">getGroups</a> method.</p>
</div></div></div><div id="property-groupers" class="member ni"><a href="Ext.data.Store.html#property-groupers" rel="property-groupers" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-groupers" class="viewSource">view source</a></div><a name="groupers"></a><a name="property-groupers"></a><a href="Ext.data.Store.html#" rel="property-groupers" class="cls expand">groupers</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Grouper.html" rel="Ext.util.Grouper" class="docClass">Groupers</a> currently applied to this Store</p>
</div><div class="long"><p>The collection of <a href="Ext.util.Grouper.html" rel="Ext.util.Grouper" class="docClass">Groupers</a> currently applied to this Store</p>
</div></div></div><div id="property-isDestroyed" class="member inherited"><a href="Ext.data.Store.html#property-isDestroyed" rel="property-isDestroyed" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-isDestroyed" class="viewSource">view source</a></div><a name="isDestroyed"></a><a name="property-isDestroyed"></a><a href="Ext.data.Store.html#" rel="property-isDestroyed" class="cls expand">isDestroyed</a><span> : Boolean</span></div><div class="description"><div class="short">True if the Store has already been destroyed via destroyStore. If this is true, the reference to Store should be dele...</div><div class="long"><p>True if the Store has already been destroyed via <a href="Ext.data.Store.html#destroyStore" rel="Ext.data.Store#destroyStore" class="docClass">destroyStore</a>. If this is true, the reference to Store should be deleted
as it will not function correctly any more.</p>
</div></div></div><div id="property-isSortable" class="member inherited"><a href="Ext.data.Store.html#property-isSortable" rel="property-isSortable" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-isSortable" class="viewSource">view source</a></div><a name="isSortable"></a><a name="property-isSortable"></a><a href="Ext.data.Store.html#" rel="property-isSortable" class="cls expand">isSortable</a><span> : Boolean</span></div><div class="description"><div class="short"><p>Flag denoting that this object is sortable. Always true.</p>
</div><div class="long"><p>Flag denoting that this object is sortable. Always true.</p>
</div></div></div><div id="property-pageSize" class="member ni"><a href="Ext.data.Store.html#property-pageSize" rel="property-pageSize" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-pageSize" class="viewSource">view source</a></div><a name="pageSize"></a><a name="property-pageSize"></a><a href="Ext.data.Store.html#" rel="property-pageSize" class="cls expand">pageSize</a><span> : Number</span></div><div class="description"><div class="short">The number of records considered to form a 'page'. This is used to power the built-in
paging using the nextPage and p...</div><div class="long"><p>The number of records considered to form a 'page'. This is used to power the built-in
paging using the nextPage and previousPage functions. Defaults to 25.</p>
</div></div></div><div id="property-removeAll" class="member inherited"><a href="Ext.data.Store.html#property-removeAll" rel="property-removeAll" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-removeAll" class="viewSource">view source</a></div><a name="removeAll"></a><a name="property-removeAll"></a><a href="Ext.data.Store.html#" rel="property-removeAll" class="cls expand">removeAll</a><span> : Object</span></div><div class="description"><div class="short">Removes all records from the store. This method does a "fast remove",
individual remove events are not called. The cl...</div><div class="long"><p>Removes all records from the store. This method does a "fast remove",
individual remove events are not called. The <a href="Ext.data.Store.html#clear" rel="Ext.data.Store#clear" class="docClass">clear</a> event is
fired upon completion.</p>
</div></div></div><div id="property-snapshot" class="member ni"><a href="Ext.data.Store.html#property-snapshot" rel="property-snapshot" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-snapshot" class="viewSource">view source</a></div><a name="snapshot"></a><a name="property-snapshot"></a><a href="Ext.data.Store.html#" rel="property-snapshot" class="cls expand">snapshot</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short">A pristine (unfiltered) collection of the records in this store. This is used to reinstate
records when a filter is r...</div><div class="long"><p>A pristine (unfiltered) collection of the records in this store. This is used to reinstate
records when a filter is removed or changed</p>
</div></div></div><div id="property-sortOnLoad" class="member inherited"><a href="Ext.data.Store.html#property-sortOnLoad" rel="property-sortOnLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-sortOnLoad" class="viewSource">view source</a></div><a name="sortOnLoad"></a><a name="property-sortOnLoad"></a><a href="Ext.data.Store.html#" rel="property-sortOnLoad" class="cls expand">sortOnLoad</a><span> : Boolean</span></div><div class="description"><div class="short">If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired.
De...</div><div class="long"><p>If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired.
Defaults to true, igored if <a href="Ext.data.Store.html#remoteSort" rel="Ext.data.Store#remoteSort" class="docClass">remoteSort</a> is true</p>
</div></div></div><div id="property-sortRoot" class="member inherited"><a href="Ext.data.Store.html#property-sortRoot" rel="property-sortRoot" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-sortRoot" class="viewSource">view source</a></div><a name="sortRoot"></a><a name="property-sortRoot"></a><a href="Ext.data.Store.html#" rel="property-sortRoot" class="cls expand">sortRoot</a><span> : String</span></div><div class="description"><div class="short"><p>The property in each item that contains the data to sort. (defaults to null)</p>
</div><div class="long"><p>The property in each item that contains the data to sort. (defaults to null)</p>
</div></div></div><div id="property-sorters" class="member inherited"><a href="Ext.data.Store.html#property-sorters" rel="property-sorters" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-sorters" class="viewSource">view source</a></div><a name="sorters"></a><a name="property-sorters"></a><a href="Ext.data.Store.html#" rel="property-sorters" class="cls expand">sorters</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Sorters</a> currently applied to this Store</p>
</div><div class="long"><p>The collection of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Sorters</a> currently applied to this Store</p>
</div></div></div></div><div class="m-methods"><a name="methods"></a><div class="definedBy">Defined By</div><h3 class="mth p">Methods</h3><div id="method-Store" class="member f ni"><a href="Ext.data.Store.html#method-Store" rel="method-Store" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-constructor" class="viewSource">view source</a></div><a name="Store"></a><a name="method-Store"></a><a href="Ext.data.Store.html#" rel="method-Store" class="cls expand">Store</a>(
<span class="pre">Object config</span>)
 : void</div><div class="description"><div class="short"><p>&nbsp;</p></div><div class="long">
<h3 class="pa">Parameters</h3><ul><li><span class="pre">config</span> : Object<div class="sub-desc"><p>Optional config object</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-add" class="member ni"><a href="Ext.data.Store.html#method-add" rel="method-add" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-add" class="viewSource">view source</a></div><a name="add"></a><a name="method-add"></a><a href="Ext.data.Store.html#" rel="method-add" class="cls expand">add</a>(
<span class="pre">Object data</span>)
 : Array</div><div class="description"><div class="short">Adds Model instances to the Store by instantiating them based on a JavaScript object. When adding already-
instantiat...</div><div class="long"><p>Adds Model instances to the Store by instantiating them based on a JavaScript object. When adding already-
instantiated Models, use <a href="Ext.data.Store.html#insert" rel="Ext.data.Store#insert" class="docClass">insert</a> instead. The instances will be added at the end of the existing collection.
This method accepts either a single argument array of Model instances or any number of model instance arguments.
Sample usage:</p>

<pre><code>myStore.add({some: 'data'}, {some: 'other data'});
</code></pre>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">data</span> : Object<div class="sub-desc"><p>The data for each model</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The array of newly created model instances</p>
</li></ul></div></div></div><div id="method-addEvents" class="member inherited"><a href="Ext.data.Store.html#method-addEvents" rel="method-addEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addEvents" class="viewSource">view source</a></div><a name="addEvents"></a><a name="method-addEvents"></a><a href="Ext.data.Store.html#" rel="method-addEvents" class="cls expand">addEvents</a>(
<span class="pre">Object/String o, String </span>)
 : void</div><div class="description"><div class="short"><p>Adds the specified events to the list of events which this Observable may fire.</p>
</div><div class="long"><p>Adds the specified events to the list of events which this Observable may fire.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Object/String<div class="sub-desc"><p>Either an object with event names as properties with a value of <code>true</code>
or the first event name string if multiple event names are being passed as separate parameters.</p>
</div></li><li><span class="pre"></span> : String<div class="sub-desc"><p>[additional] Optional additional event names if multiple event names are being passed as separate parameters.
Usage:</p>

<pre><code>this.addEvents('storeloaded', 'storecleared');
</code></pre>

</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-addListener" class="member inherited"><a href="Ext.data.Store.html#method-addListener" rel="method-addListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addListener" class="viewSource">view source</a></div><a name="addListener"></a><a name="method-addListener"></a><a href="Ext.data.Store.html#" rel="method-addListener" class="cls expand">addListener</a>(
<span class="pre">String eventName, Function handler, [Object scope], [Object options]</span>)
 : void</div><div class="description"><div class="short"><p>Appends an event handler to this object.</p>
</div><div class="long"><p>Appends an event handler to this object.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to listen for. May also be an object who's property names are event names. See</p>
</div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The method the event invokes.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.
<b>If omitted, defaults to the object which fired the event.</b></p>
</div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>(optional) An object containing handler configuration.
properties. This may contain any of the following properties:<ul>
<li><b>scope</b> : Object<div class="sub-desc">The scope (<code><b>this</b></code> reference) in which the handler function is executed.
<b>If omitted, defaults to the object which fired the event.</b></div></li>
<li><b>delay</b> : Number<div class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</div></li>
<li><b>single</b> : Boolean<div class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</div></li>
<li><b>buffer</b> : Number<div class="sub-desc">Causes the handler to be scheduled to run in an <a href="Ext.util.DelayedTask.html" rel="Ext.util.DelayedTask" class="docClass">Ext.util.DelayedTask</a> delayed
by the specified number of milliseconds. If the event fires again within that time, the original
handler is <em>not</em> invoked, but the new handler is scheduled in its place.</div></li>
<li><b>target</b> : Observable<div class="sub-desc">Only call the handler if the event was fired on the target Observable, <i>not</i>
if the event was bubbled up from a child Observable.</div></li>
<li><b>element</b> : String<div class="sub-desc"><b>This option is only valid for listeners bound to <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a>.</b>
The name of a Component property which references an element to add a listener to.</p>

<p>This option is useful during Component construction to add DOM event listeners to elements of <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a> which
will exist only after the Component is rendered. For example, to add a click listener to a Panel's body:
<pre><code>new Ext.panel.Panel({
    title: 'The title',
    listeners: {
        click: this.handlePanelClick,
        element: 'body'
    }
});
</code></pre></p>


<p>When added in this way, the options available are the options applicable to <a href="Ext.core.Element.html#addListener" rel="Ext.core.Element#addListener" class="docClass">Ext.core.Element.addListener</a></p>


<p></div></li>
</ul><br></p>

<p>
<b>Combining Options</b><br>
Using the options argument, it is possible to combine different types of listeners:<br>
<br>
A delayed, one-time listener.
<pre><code>myPanel.on('hide', this.handleClick, this, {
single: true,
delay: 100
});</code></pre>
<p>
<b>Attaching multiple handlers in 1 call</b><br>
The method also allows for a single argument to be passed which is a config object containing properties
which specify multiple events. For example:
<pre><code>myGridPanel.on({
    cellClick: this.onCellClick,
    mouseover: this.onMouseOver,
    mouseout: this.onMouseOut,
    scope: this // Important. Ensure "this" is correct during handler execution
});
</code></pre>.
<p>

</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-addManagedListener" class="member inherited"><a href="Ext.data.Store.html#method-addManagedListener" rel="method-addManagedListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addManagedListener" class="viewSource">view source</a></div><a name="addManagedListener"></a><a name="method-addManagedListener"></a><a href="Ext.data.Store.html#" rel="method-addManagedListener" class="cls expand">addManagedListener</a>(
<span class="pre">Observable/Element item, Object/String ename, Function fn, Object scope, Object opt</span>)
 : void</div><div class="description"><div class="short"><p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component
is destroyed.

</div><div class="long"><p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component
is destroyed.

<h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Observable/Element<div class="sub-desc"><p>The item to which to add a listener/listeners.</p>
</div></li><li><span class="pre">ename</span> : Object/String<div class="sub-desc"><p>The event name, or an object containing event name properties.</p>
</div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the handler function.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the scope (<code>this</code> reference) in which the handler function is executed.</p>
</div></li><li><span class="pre">opt</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the <a href="Ext.util.Observable.html#addListener" rel="Ext.util.Observable#addListener" class="docClass">addListener</a> options.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-aggregate" class="member ni"><a href="Ext.data.Store.html#method-aggregate" rel="method-aggregate" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-aggregate" class="viewSource">view source</a></div><a name="aggregate"></a><a name="method-aggregate"></a><a href="Ext.data.Store.html#" rel="method-aggregate" class="cls expand">aggregate</a>(
<span class="pre">Function fn, [Object scope], Boolean grouped, [Array args]</span>)
 : Object</div><div class="description"><div class="short"><p>Runs the aggregate function for all the records in the store.</p>
</div><div class="long"><p>Runs the aggregate function for all the records in the store.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to execute. The function is called with a single parameter,
an array of records for that group.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope to execute the function in. Defaults to the store.</p>
</div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
in the store. The value returned will be an object literal with the key being the group
name and the group average being the value. The grouped parameter is only honored if
the store has a groupField.</p>
</div></li><li><span class="pre">args</span> : Array<div class="sub-desc"><p>(optional) Any arguments to append to the function call</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>An object literal with the group names and their appropriate values.</p>
</li></ul></div></div></div><div id="method-average" class="member ni"><a href="Ext.data.Store.html#method-average" rel="method-average" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-average" class="viewSource">view source</a></div><a name="average"></a><a name="method-average"></a><a href="Ext.data.Store.html#" rel="method-average" class="cls expand">average</a>(
<span class="pre">String field, Boolean grouped</span>)
 : Mixed/undefined</div><div class="description"><div class="short"><p>Gets the average value in the store.</p>
</div><div class="long"><p>Gets the average value in the store.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">field</span> : String<div class="sub-desc"><p>The field in each record</p>
</div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
in the store. The value returned will be an object literal with the key being the group
name and the group average being the value. The grouped parameter is only honored if
the store has a groupField.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Mixed/undefined</span>&nbsp; &nbsp;<p>The average value, if no items exist, 0.</p>
</li></ul></div></div></div><div id="method-capture" class="member inherited"><a href="Ext.data.Store.html#method-capture" rel="method-capture" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-capture" class="viewSource">view source</a></div><a name="capture"></a><a name="method-capture"></a><a href="Ext.data.Store.html#" rel="method-capture" class="cls expand">capture</a>(
<span class="pre">Observable o, Function fn, [Object scope]</span>)
 : void</div><div class="description"><div class="short">Starts capture on the specified Observable. All events will be passed
to the supplied function with the event name + ...</div><div class="long"><p>Starts capture on the specified Observable. All events will be passed
to the supplied function with the event name + standard signature of the event
<b>before</b> the event is fired. If the supplied function returns false,
the event will not fire.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Observable<div class="sub-desc"><p>The Observable to capture events from.</p>
</div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call when an event is fired.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the Observable firing the event.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-clearFilter" class="member ni"><a href="Ext.data.Store.html#method-clearFilter" rel="method-clearFilter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-clearFilter" class="viewSource">view source</a></div><a name="clearFilter"></a><a name="method-clearFilter"></a><a href="Ext.data.Store.html#" rel="method-clearFilter" class="cls expand">clearFilter</a>(
<span class="pre">Boolean suppressEvent</span>)
 : void</div><div class="description"><div class="short"><p>Revert to a view of the Record cache with no filtering applied.</p>
</div><div class="long"><p>Revert to a view of the Record cache with no filtering applied.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">suppressEvent</span> : Boolean<div class="sub-desc"><p>If <tt>true</tt> the filter is cleared silently without firing the
<a href="Ext.data.Store.html#datachanged" rel="Ext.data.Store#datachanged" class="docClass">datachanged</a> event.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-clearGrouping" class="member ni"><a href="Ext.data.Store.html#method-clearGrouping" rel="method-clearGrouping" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-clearGrouping" class="viewSource">view source</a></div><a name="clearGrouping"></a><a name="method-clearGrouping"></a><a href="Ext.data.Store.html#" rel="method-clearGrouping" class="cls expand">clearGrouping</a> : void</div><div class="description"><div class="short"><p>Clear any groupers in the store</p>
</div><div class="long"><p>Clear any groupers in the store</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-clearListeners" class="member inherited"><a href="Ext.data.Store.html#method-clearListeners" rel="method-clearListeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-clearListeners" class="viewSource">view source</a></div><a name="clearListeners"></a><a name="method-clearListeners"></a><a href="Ext.data.Store.html#" rel="method-clearListeners" class="cls expand">clearListeners</a> : void</div><div class="description"><div class="short"><p>Removes all listeners for this object including the managed listeners</p>
</div><div class="long"><p>Removes all listeners for this object including the managed listeners</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-clearManagedListeners" class="member inherited"><a href="Ext.data.Store.html#method-clearManagedListeners" rel="method-clearManagedListeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-clearManagedListeners" class="viewSource">view source</a></div><a name="clearManagedListeners"></a><a name="method-clearManagedListeners"></a><a href="Ext.data.Store.html#" rel="method-clearManagedListeners" class="cls expand">clearManagedListeners</a> : void</div><div class="description"><div class="short"><p>Removes all managed listeners for this object.</p>
</div><div class="long"><p>Removes all managed listeners for this object.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-collect" class="member ni"><a href="Ext.data.Store.html#method-collect" rel="method-collect" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-collect" class="viewSource">view source</a></div><a name="collect"></a><a name="method-collect"></a><a href="Ext.data.Store.html#" rel="method-collect" class="cls expand">collect</a>(
<span class="pre">String dataIndex, [Boolean allowNull], [Boolean bypassFilter]</span>)
 : Array</div><div class="description"><div class="short"><p>Collects unique values for a particular dataIndex from this store.</p>
</div><div class="long"><p>Collects unique values for a particular dataIndex from this store.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">dataIndex</span> : String<div class="sub-desc"><p>The property to collect</p>
</div></li><li><span class="pre">allowNull</span> : Boolean<div class="sub-desc"><p>(optional) Pass true to allow null, undefined or empty string values</p>
</div></li><li><span class="pre">bypassFilter</span> : Boolean<div class="sub-desc"><p>(optional) Pass true to collect from all records, even ones which are filtered</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>An array of the unique values</p>
</li></ul></div></div></div><div id="method-count" class="member ni"><a href="Ext.data.Store.html#method-count" rel="method-count" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-count" class="viewSource">view source</a></div><a name="count"></a><a name="method-count"></a><a href="Ext.data.Store.html#" rel="method-count" class="cls expand">count</a>(
<span class="pre">Boolean grouped</span>)
 : Number</div><div class="description"><div class="short"><p>Gets the count of items in the store.</p>
</div><div class="long"><p>Gets the count of items in the store.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
in the store. The value returned will be an object literal with the key being the group
name and the count for each group being the value. The grouped parameter is only honored if
the store has a groupField.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>the count</p>
</li></ul></div></div></div><div id="method-each" class="member ni"><a href="Ext.data.Store.html#method-each" rel="method-each" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-each" class="viewSource">view source</a></div><a name="each"></a><a name="method-each"></a><a href="Ext.data.Store.html#" rel="method-each" class="cls expand">each</a>(
<span class="pre">Function fn, [Object scope]</span>)
 : void</div><div class="description"><div class="short"><p>Calls the specified function for each of the <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Records</a> in the cache.</p>
</div><div class="long"><p>Calls the specified function for each of the <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Records</a> in the cache.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call. The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Record</a> is passed as the first parameter.
Returning <tt>false</tt> aborts and exits the iteration.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed.
Defaults to the current <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Record</a> in the iteration.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-enableBubble" class="member inherited"><a href="Ext.data.Store.html#method-enableBubble" rel="method-enableBubble" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-enableBubble" class="viewSource">view source</a></div><a name="enableBubble"></a><a name="method-enableBubble"></a><a href="Ext.data.Store.html#" rel="method-enableBubble" class="cls expand">enableBubble</a>(
<span class="pre">String/Array events</span>)
 : void</div><div class="description"><div class="short">Enables events fired by this Observable to bubble up an owner hierarchy by calling
this.getBubbleTarget() if present....</div><div class="long"><p>Enables events fired by this Observable to bubble up an owner hierarchy by calling
<code>this.getBubbleTarget()</code> if present. There is no implementation in the Observable base class.</p>


<p>This is commonly used by Ext.Components to bubble events to owner Containers. See <a href="Ext.Component.html#getBubbleTarget" rel="Ext.Component#getBubbleTarget" class="docClass">Ext.Component.getBubbleTarget</a>. The default
implementation in <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Ext.Component</a> returns the Component's immediate owner. But if a known target is required, this can be overridden to
access the required target more quickly.</p>


<p>Example:</p>


<pre><code>Ext.override(Ext.form.field.Base, {
//  Add functionality to Field&#39;s initComponent to enable the change event to bubble
initComponent : Ext.Function.createSequence(Ext.form.field.Base.prototype.initComponent, function() {
    this.enableBubble('change');
}),

//  We know that we want Field&#39;s events to bubble directly to the FormPanel.
getBubbleTarget : function() {
    if (!this.formPanel) {
        this.formPanel = this.findParentByType('form');
    }
    return this.formPanel;
}
});

var myForm = new Ext.formPanel({
title: 'User Details',
items: [{
    ...
}],
listeners: {
    change: function() {
        // Title goes red if form has been modified.
        myForm.header.setStyle('color', 'red');
    }
}
});
</code></pre>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">events</span> : String/Array<div class="sub-desc"><p>The event name to bubble, or an Array of event names.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-filter" class="member ni"><a href="Ext.data.Store.html#method-filter" rel="method-filter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-filter" class="viewSource">view source</a></div><a name="filter"></a><a name="method-filter"></a><a href="Ext.data.Store.html#" rel="method-filter" class="cls expand">filter</a>(
<span class="pre">Mixed filters, String value</span>)
 : void</div><div class="description"><div class="short"><p>Filters the loaded set of records by a given set of filters.</p>
</div><div class="long"><p>Filters the loaded set of records by a given set of filters.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">filters</span> : Mixed<div class="sub-desc"><p>The set of filters to apply to the data. These are stored internally on the store,
but the filtering itself is done on the Store's <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">MixedCollection</a>. See
MixedCollection's <a href="Ext.util.MixedCollection.html#filter" rel="Ext.util.MixedCollection#filter" class="docClass">filter</a> method for filter syntax. Alternatively,
pass in a property string</p>
</div></li><li><span class="pre">value</span> : String<div class="sub-desc"><p>Optional value to filter by (only if using a property string as the first argument)</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-filterBy" class="member ni"><a href="Ext.data.Store.html#method-filterBy" rel="method-filterBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-filterBy" class="viewSource">view source</a></div><a name="filterBy"></a><a name="method-filterBy"></a><a href="Ext.data.Store.html#" rel="method-filterBy" class="cls expand">filterBy</a>(
<span class="pre">Function fn, [Object scope]</span>)
 : void</div><div class="description"><div class="short">Filter by a function. The specified function will be called for each
Record in this Store. If the function returns tr...</div><div class="long"><p>Filter by a function. The specified function will be called for each
Record in this Store. If the function returns <tt>true</tt> the Record is included,
otherwise it is filtered out.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to be called. It will be passed the following parameters:<ul>
<li><b>record</b> : Ext.data.Model<p class="sub-desc">The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a>
to test for filtering. Access field values using <a href="Ext.data.Model.html#get" rel="Ext.data.Model#get" class="docClass">Ext.data.Model.get</a>.</p></li>
<li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
</ul></p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to this Store.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-find" class="member ni"><a href="Ext.data.Store.html#method-find" rel="method-find" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-find" class="viewSource">view source</a></div><a name="find"></a><a name="method-find"></a><a href="Ext.data.Store.html#" rel="method-find" class="cls expand">find</a>(
<span class="pre">String fieldName, String/RegExp value, [Number startIndex], [Boolean anyMatch], [Boolean caseSensitive], Boolean exactMatch</span>)
 : Number</div><div class="description"><div class="short"><p>Finds the index of the first matching Record in this store by a specific field value.</p>
</div><div class="long"><p>Finds the index of the first matching Record in this store by a specific field value.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">fieldName</span> : String<div class="sub-desc"><p>The name of the Record field to test.</p>
</div></li><li><span class="pre">value</span> : String/RegExp<div class="sub-desc"><p>Either a string that the field value
should begin with, or a RegExp to test against the field.</p>
</div></li><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at</p>
</div></li><li><span class="pre">anyMatch</span> : Boolean<div class="sub-desc"><p>(optional) True to match any part of the string, not just the beginning</p>
</div></li><li><span class="pre">caseSensitive</span> : Boolean<div class="sub-desc"><p>(optional) True for case sensitive comparison</p>
</div></li><li><span class="pre">exactMatch</span> : Boolean<div class="sub-desc"><p>True to force exact match (^ and $ characters added to the regex). Defaults to false.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The matched index or -1</p>
</li></ul></div></div></div><div id="method-findBy" class="member ni"><a href="Ext.data.Store.html#method-findBy" rel="method-findBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-findBy" class="viewSource">view source</a></div><a name="findBy"></a><a name="method-findBy"></a><a href="Ext.data.Store.html#" rel="method-findBy" class="cls expand">findBy</a>(
<span class="pre">Function fn, [Object scope], [Number startIndex]</span>)
 : Number</div><div class="description"><div class="short">Find the index of the first matching Record in this Store by a function.
If the function returns true it is considere...</div><div class="long"><p>Find the index of the first matching Record in this Store by a function.
If the function returns <tt>true</tt> it is considered a match.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to be called. It will be passed the following parameters:<ul>
<li><b>record</b> : Ext.data.Model<p class="sub-desc">The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a>
to test for filtering. Access field values using <a href="Ext.data.Model.html#get" rel="Ext.data.Model#get" class="docClass">Ext.data.Model.get</a>.</p></li>
<li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
</ul></p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to this Store.</p>
</div></li><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The matched index or -1</p>
</li></ul></div></div></div><div id="method-findExact" class="member ni"><a href="Ext.data.Store.html#method-findExact" rel="method-findExact" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-findExact" class="viewSource">view source</a></div><a name="findExact"></a><a name="method-findExact"></a><a href="Ext.data.Store.html#" rel="method-findExact" class="cls expand">findExact</a>(
<span class="pre">String fieldName, Mixed value, [Number startIndex]</span>)
 : Number</div><div class="description"><div class="short"><p>Finds the index of the first matching Record in this store by a specific field value.</p>
</div><div class="long"><p>Finds the index of the first matching Record in this store by a specific field value.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">fieldName</span> : String<div class="sub-desc"><p>The name of the Record field to test.</p>
</div></li><li><span class="pre">value</span> : Mixed<div class="sub-desc"><p>The value to match the field against.</p>
</div></li><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The matched index or -1</p>
</li></ul></div></div></div><div id="method-findRecord" class="member ni"><a href="Ext.data.Store.html#method-findRecord" rel="method-findRecord" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-findRecord" class="viewSource">view source</a></div><a name="findRecord"></a><a name="method-findRecord"></a><a href="Ext.data.Store.html#" rel="method-findRecord" class="cls expand">findRecord</a>(
<span class="pre">String fieldName, String/RegExp value, [Number startIndex], [Boolean anyMatch], [Boolean caseSensitive], Boolean exactMatch</span>)
 : Ext.data.Model</div><div class="description"><div class="short"><p>Finds the first matching Record in this store by a specific field value.</p>
</div><div class="long"><p>Finds the first matching Record in this store by a specific field value.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">fieldName</span> : String<div class="sub-desc"><p>The name of the Record field to test.</p>
</div></li><li><span class="pre">value</span> : String/RegExp<div class="sub-desc"><p>Either a string that the field value
should begin with, or a RegExp to test against the field.</p>
</div></li><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at</p>
</div></li><li><span class="pre">anyMatch</span> : Boolean<div class="sub-desc"><p>(optional) True to match any part of the string, not just the beginning</p>
</div></li><li><span class="pre">caseSensitive</span> : Boolean<div class="sub-desc"><p>(optional) True for case sensitive comparison</p>
</div></li><li><span class="pre">exactMatch</span> : Boolean<div class="sub-desc"><p>True to force exact match (^ and $ characters added to the regex). Defaults to false.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model</span>&nbsp; &nbsp;<p>The matched record or null</p>
</li></ul></div></div></div><div id="method-fireEvent" class="member inherited"><a href="Ext.data.Store.html#method-fireEvent" rel="method-fireEvent" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-fireEvent" class="viewSource">view source</a></div><a name="fireEvent"></a><a name="method-fireEvent"></a><a href="Ext.data.Store.html#" rel="method-fireEvent" class="cls expand">fireEvent</a>(
<span class="pre">String eventName, Object... args</span>)
 : Boolean</div><div class="description"><div class="short">Fires the specified event with the passed parameters (minus the event name).


An event may be set to bubble up an Ob...</div><div class="long"><p>Fires the specified event with the passed parameters (minus the event name).</p>


<p>An event may be set to bubble up an Observable parent hierarchy (See <a href="Ext.Component.html#getBubbleTarget" rel="Ext.Component#getBubbleTarget" class="docClass">Ext.Component.getBubbleTarget</a>)
by calling <a href="Ext.data.Store.html#enableBubble" rel="Ext.data.Store#enableBubble" class="docClass">enableBubble</a>.</p>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to fire.</p>
</div></li><li><span class="pre">args</span> : Object...<div class="sub-desc"><p>Variable number of parameters are passed to handlers.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>returns false if any of the handlers return false otherwise it returns true.</p>
</li></ul></div></div></div><div id="method-first" class="member ni"><a href="Ext.data.Store.html#method-first" rel="method-first" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-first" class="viewSource">view source</a></div><a name="first"></a><a name="method-first"></a><a href="Ext.data.Store.html#" rel="method-first" class="cls expand">first</a>(
<span class="pre">Boolean grouped</span>)
 : Ext.data.Model/undefined</div><div class="description"><div class="short"><p>Convenience function for getting the first model instance in the store</p>
</div><div class="long"><p>Convenience function for getting the first model instance in the store</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
in the store. The value returned will be an object literal with the key being the group
name and the first record being the value. The grouped parameter is only honored if
the store has a groupField.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model/undefined</span>&nbsp; &nbsp;<p>The first model instance in the store, or undefined</p>
</li></ul></div></div></div><div id="method-getAt" class="member ni"><a href="Ext.data.Store.html#method-getAt" rel="method-getAt" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getAt" class="viewSource">view source</a></div><a name="getAt"></a><a name="method-getAt"></a><a href="Ext.data.Store.html#" rel="method-getAt" class="cls expand">getAt</a>(
<span class="pre">Number index</span>)
 : Ext.data.Model</div><div class="description"><div class="short"><p>Get the Record at the specified index.</p>
</div><div class="long"><p>Get the Record at the specified index.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index of the Record to find.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model</span>&nbsp; &nbsp;<p>The Record at the passed index. Returns undefined if not found.</p>
</li></ul></div></div></div><div id="method-getById" class="member ni"><a href="Ext.data.Store.html#method-getById" rel="method-getById" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getById" class="viewSource">view source</a></div><a name="getById"></a><a name="method-getById"></a><a href="Ext.data.Store.html#" rel="method-getById" class="cls expand">getById</a>(
<span class="pre">String id</span>)
 : Ext.data.Model</div><div class="description"><div class="short"><p>Get the Record with the specified id.</p>
</div><div class="long"><p>Get the Record with the specified id.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">id</span> : String<div class="sub-desc"><p>The id of the Record to find.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model</span>&nbsp; &nbsp;<p>The Record with the passed id. Returns undefined if not found.</p>
</li></ul></div></div></div><div id="method-getCount" class="member ni"><a href="Ext.data.Store.html#method-getCount" rel="method-getCount" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getCount" class="viewSource">view source</a></div><a name="getCount"></a><a name="method-getCount"></a><a href="Ext.data.Store.html#" rel="method-getCount" class="cls expand">getCount</a> : Number</div><div class="description"><div class="short">Gets the number of cached records.

If using paging, this may not be the total size of the dataset. If the data objec...</div><div class="long"><p>Gets the number of cached records.</p>

<p>If using paging, this may not be the total size of the dataset. If the data object
used by the Reader contains the dataset size, then the <a href="Ext.data.Store.html#getTotalCount" rel="Ext.data.Store#getTotalCount" class="docClass">getTotalCount</a> function returns
the dataset size.  <b>Note</b>: see the Important note in <a href="Ext.data.Store.html#load" rel="Ext.data.Store#load" class="docClass">load</a>.</p>

<h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The number of Records in the Store's cache.</p>
</li></ul></div></div></div><div id="method-getGroupString" class="member ni"><a href="Ext.data.Store.html#method-getGroupString" rel="method-getGroupString" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getGroupString" class="viewSource">view source</a></div><a name="getGroupString"></a><a name="method-getGroupString"></a><a href="Ext.data.Store.html#" rel="method-getGroupString" class="cls expand">getGroupString</a>(
<span class="pre">Ext.data.Model instance</span>)
 : String</div><div class="description"><div class="short">Returns the string to group on for a given model instance. The default implementation of this method returns
the mode...</div><div class="long"><p>Returns the string to group on for a given model instance. The default implementation of this method returns
the model's <a href="Ext.data.Store.html#groupField" rel="Ext.data.Store#groupField" class="docClass">groupField</a>, but this can be overridden to group by an arbitrary string. For example, to
group by the first letter of a model's 'name' field, use the following code:</p>


<pre><code>new Ext.data.Store({
    groupDir: 'ASC',
    getGroupString: function(instance) {
        return instance.get('name')[0];
    }
});
</code></pre>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">instance</span> : Ext.data.Model<div class="sub-desc"><p>The model instance</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">String</span>&nbsp; &nbsp;<p>The string to compare when forming groups</p>
</li></ul></div></div></div><div id="method-getGroups" class="member ni"><a href="Ext.data.Store.html#method-getGroups" rel="method-getGroups" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getGroups" class="viewSource">view source</a></div><a name="getGroups"></a><a name="method-getGroups"></a><a href="Ext.data.Store.html#" rel="method-getGroups" class="cls expand">getGroups</a>(
<span class="pre">String groupName</span>)
 : Array</div><div class="description"><div class="short">Returns an object containing the result of applying grouping to the records in this store. See groupField,
groupDir a...</div><div class="long"><p>Returns an object containing the result of applying grouping to the records in this store. See <a href="Ext.data.Store.html#groupField" rel="Ext.data.Store#groupField" class="docClass">groupField</a>,
<a href="Ext.data.Store.html#groupDir" rel="Ext.data.Store#groupDir" class="docClass">groupDir</a> and <a href="Ext.data.Store.html#getGroupString" rel="Ext.data.Store#getGroupString" class="docClass">getGroupString</a>. Example for a store containing records with a color field:</p>

<pre><code>var myStore = new Ext.data.Store({
    groupField: 'color',
    groupDir  : 'DESC'
});

myStore.getGroups(); //returns:
[
    {
        name: 'yellow',
        children: [
            //all records where the color field is 'yellow'
        ]
    },
    {
        name: 'red',
        children: [
            //all records where the color field is 'red'
        ]
    }
]
</code></pre>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">groupName</span> : String<div class="sub-desc"><p>(Optional) Pass in an optional groupName argument to access a specific group as defined by <a href="Ext.data.Store.html#getGroupString" rel="Ext.data.Store#getGroupString" class="docClass">getGroupString</a></p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The grouped data</p>
</li></ul></div></div></div><div id="method-getNewRecords" class="member inherited"><a href="Ext.data.Store.html#method-getNewRecords" rel="method-getNewRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getNewRecords" class="viewSource">view source</a></div><a name="getNewRecords"></a><a name="method-getNewRecords"></a><a href="Ext.data.Store.html#" rel="method-getNewRecords" class="cls expand">getNewRecords</a> : Array</div><div class="description"><div class="short">Returns all Model instances that are either currently a phantom (e.g. have no id), or have an ID but have not
yet bee...</div><div class="long"><p>Returns all Model instances that are either currently a phantom (e.g. have no id), or have an ID but have not
yet been saved on this Store (this happens when adding a non-phantom record from another Store into this one)</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The Model instances</p>
</li></ul></div></div></div><div id="method-getPageFromRecordIndex" class="member ni"><a href="Ext.data.Store.html#method-getPageFromRecordIndex" rel="method-getPageFromRecordIndex" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getPageFromRecordIndex" class="viewSource">view source</a></div><a name="getPageFromRecordIndex"></a><a name="method-getPageFromRecordIndex"></a><a href="Ext.data.Store.html#" rel="method-getPageFromRecordIndex" class="cls expand">getPageFromRecordIndex</a>(
<span class="pre">Number index</span>)
 : Number</div><div class="description"><div class="short"><p>Determines the page from a record index</p>
</div><div class="long"><p>Determines the page from a record index</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The record index</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The page the record belongs to</p>
</li></ul></div></div></div><div id="method-getProxy" class="member inherited"><a href="Ext.data.Store.html#method-getProxy" rel="method-getProxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getProxy" class="viewSource">view source</a></div><a name="getProxy"></a><a name="method-getProxy"></a><a href="Ext.data.Store.html#" rel="method-getProxy" class="cls expand">getProxy</a> : Ext.data.proxy.Proxy</div><div class="description"><div class="short"><p>Returns the proxy currently attached to this proxy instance</p>
</div><div class="long"><p>Returns the proxy currently attached to this proxy instance</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.proxy.Proxy</span>&nbsp; &nbsp;<p>The Proxy instance</p>
</li></ul></div></div></div><div id="method-getRange" class="member ni"><a href="Ext.data.Store.html#method-getRange" rel="method-getRange" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getRange" class="viewSource">view source</a></div><a name="getRange"></a><a name="method-getRange"></a><a href="Ext.data.Store.html#" rel="method-getRange" class="cls expand">getRange</a>(
<span class="pre">[Number startIndex], [Number endIndex]</span>)
 : Ext.data.Model[]</div><div class="description"><div class="short"><p>Returns a range of Records between specified indices.</p>
</div><div class="long"><p>Returns a range of Records between specified indices.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The starting index (defaults to 0)</p>
</div></li><li><span class="pre">endIndex</span> : Number<div class="sub-desc"><p>(optional) The ending index (defaults to the last Record in the Store)</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model[]</span>&nbsp; &nbsp;<p>An array of Records</p>
</li></ul></div></div></div><div id="method-getSortState" class="member inherited"><a href="Ext.data.Store.html#method-getSortState" rel="method-getSortState" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-getSortState" class="viewSource">view source</a></div><a name="getSortState"></a><a name="method-getSortState"></a><a href="Ext.data.Store.html#" rel="method-getSortState" class="cls expand">getSortState</a> : Object</div><div class="description"><div class="short"><p>Returns an object describing the current sort state of this Store.</p>
</div><div class="long"><p>Returns an object describing the current sort state of this Store.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The sort state of the Store. An object with two properties:<ul>
<li><b>field</b> : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li>
<li><b>direction</b> : String<p class="sub-desc">The sort order, 'ASC' or 'DESC' (case-sensitive).</p></li>
</ul>
See <tt><a href="Ext.data.Store.html#sortInfo" rel="Ext.data.Store#sortInfo" class="docClass">sortInfo</a></tt> for additional details.</p>
</li></ul></div></div></div><div id="method-getTotalCount" class="member ni"><a href="Ext.data.Store.html#method-getTotalCount" rel="method-getTotalCount" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getTotalCount" class="viewSource">view source</a></div><a name="getTotalCount"></a><a name="method-getTotalCount"></a><a href="Ext.data.Store.html#" rel="method-getTotalCount" class="cls expand">getTotalCount</a> : Number</div><div class="description"><div class="short">Returns the total number of Model instances that the Proxy
indicates exist. This will usually differ from getCount wh...</div><div class="long"><p>Returns the total number of <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a> instances that the <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Proxy</a>
indicates exist. This will usually differ from <a href="Ext.data.Store.html#getCount" rel="Ext.data.Store#getCount" class="docClass">getCount</a> when using paging - getCount returns the
number of records loaded into the Store at the moment, getTotalCount returns the number of records that
could be loaded into the Store if the Store contained all data</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The total number of Model instances available via the Proxy</p>
</li></ul></div></div></div><div id="method-getUpdatedRecords" class="member inherited"><a href="Ext.data.Store.html#method-getUpdatedRecords" rel="method-getUpdatedRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getUpdatedRecords" class="viewSource">view source</a></div><a name="getUpdatedRecords"></a><a name="method-getUpdatedRecords"></a><a href="Ext.data.Store.html#" rel="method-getUpdatedRecords" class="cls expand">getUpdatedRecords</a> : Array</div><div class="description"><div class="short"><p>Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy</p>
</div><div class="long"><p>Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The updated Model instances</p>
</li></ul></div></div></div><div id="method-group" class="member ni"><a href="Ext.data.Store.html#method-group" rel="method-group" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-group" class="viewSource">view source</a></div><a name="group"></a><a name="method-group"></a><a href="Ext.data.Store.html#" rel="method-group" class="cls expand">group</a>(
<span class="pre">String|Array groupers, String direction</span>)
 : void</div><div class="description"><div class="short"><p>Group data in the store</p>
</div><div class="long"><p>Group data in the store</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">groupers</span> : String|Array<div class="sub-desc"><p>Either a string name of one of the fields in this Store's configured <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a>,
or an Array of grouper configurations.</p>
</div></li><li><span class="pre">direction</span> : String<div class="sub-desc"><p>The overall direction to group the data by. Defaults to "ASC".</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-guaranteeRange" class="member ni"><a href="Ext.data.Store.html#method-guaranteeRange" rel="method-guaranteeRange" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-guaranteeRange" class="viewSource">view source</a></div><a name="guaranteeRange"></a><a name="method-guaranteeRange"></a><a href="Ext.data.Store.html#" rel="method-guaranteeRange" class="cls expand">guaranteeRange</a>(
<span class="pre">Object start, Object end, Object cb, Object scope</span>)
 : void</div><div class="description"><div class="short">Guarantee a specific range, this will load the store with a range (that
must be the pageSize or smaller) and take car...</div><div class="long"><p>Guarantee a specific range, this will load the store with a range (that
must be the pageSize or smaller) and take care of any loading that may
be necessary.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">start</span> : Object<div class="sub-desc">
</div></li><li><span class="pre">end</span> : Object<div class="sub-desc">
</div></li><li><span class="pre">cb</span> : Object<div class="sub-desc">
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-hasListener" class="member inherited"><a href="Ext.data.Store.html#method-hasListener" rel="method-hasListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-hasListener" class="viewSource">view source</a></div><a name="hasListener"></a><a name="method-hasListener"></a><a href="Ext.data.Store.html#" rel="method-hasListener" class="cls expand">hasListener</a>(
<span class="pre">String eventName</span>)
 : Boolean</div><div class="description"><div class="short"><p>Checks to see if this object has any listeners for a specified event</p>
</div><div class="long"><p>Checks to see if this object has any listeners for a specified event</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to check for</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the event is being listened for, else false</p>
</li></ul></div></div></div><div id="method-hasPendingRequests" class="member ni"><a href="Ext.data.Store.html#method-hasPendingRequests" rel="method-hasPendingRequests" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-hasPendingRequests" class="viewSource">view source</a></div><a name="hasPendingRequests"></a><a name="method-hasPendingRequests"></a><a href="Ext.data.Store.html#" rel="method-hasPendingRequests" class="cls expand">hasPendingRequests</a> : void</div><div class="description"><div class="short"><p>Returns the number of pending requests out.</p>
</div><div class="long"><p>Returns the number of pending requests out.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-indexOf" class="member ni"><a href="Ext.data.Store.html#method-indexOf" rel="method-indexOf" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-indexOf" class="viewSource">view source</a></div><a name="indexOf"></a><a name="method-indexOf"></a><a href="Ext.data.Store.html#" rel="method-indexOf" class="cls expand">indexOf</a>(
<span class="pre">Ext.data.Model record</span>)
 : Number</div><div class="description"><div class="short"><p>Get the index within the cache of the passed Record.</p>
</div><div class="long"><p>Get the index within the cache of the passed Record.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> object to find.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The index of the passed Record. Returns -1 if not found.</p>
</li></ul></div></div></div><div id="method-indexOfId" class="member ni"><a href="Ext.data.Store.html#method-indexOfId" rel="method-indexOfId" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-indexOfId" class="viewSource">view source</a></div><a name="indexOfId"></a><a name="method-indexOfId"></a><a href="Ext.data.Store.html#" rel="method-indexOfId" class="cls expand">indexOfId</a>(
<span class="pre">String id</span>)
 : Number</div><div class="description"><div class="short"><p>Get the index within the cache of the Record with the passed id.</p>
</div><div class="long"><p>Get the index within the cache of the Record with the passed id.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">id</span> : String<div class="sub-desc"><p>The id of the Record to find.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The index of the Record. Returns -1 if not found.</p>
</li></ul></div></div></div><div id="method-indexOfTotal" class="member ni"><a href="Ext.data.Store.html#method-indexOfTotal" rel="method-indexOfTotal" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-indexOfTotal" class="viewSource">view source</a></div><a name="indexOfTotal"></a><a name="method-indexOfTotal"></a><a href="Ext.data.Store.html#" rel="method-indexOfTotal" class="cls expand">indexOfTotal</a>(
<span class="pre">Ext.data.Model record</span>)
 : Number</div><div class="description"><div class="short"><p>Get the index within the entire dataset. From 0 to the totalCount.</p>
</div><div class="long"><p>Get the index within the entire dataset. From 0 to the totalCount.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> object to find.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The index of the passed Record. Returns -1 if not found.</p>
</li></ul></div></div></div><div id="method-initSortable" class="member inherited"><a href="Ext.data.Store.html#method-initSortable" rel="method-initSortable" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-initSortable" class="viewSource">view source</a></div><a name="initSortable"></a><a name="method-initSortable"></a><a href="Ext.data.Store.html#" rel="method-initSortable" class="cls expand">initSortable</a> : void</div><div class="description"><div class="short">Performs initialization of this mixin. Component classes using this mixin should call this method
during their own in...</div><div class="long"><p>Performs initialization of this mixin. Component classes using this mixin should call this method
during their own initialization.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-insert" class="member ni"><a href="Ext.data.Store.html#method-insert" rel="method-insert" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-insert" class="viewSource">view source</a></div><a name="insert"></a><a name="method-insert"></a><a href="Ext.data.Store.html#" rel="method-insert" class="cls expand">insert</a>(
<span class="pre">Number index, Ext.data.Model[] records</span>)
 : void</div><div class="description"><div class="short"><p>Inserts Model instances into the Store at the given index and fires the <a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a> event.
See also <code><a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a></code>.</p>
</div><div class="long"><p>Inserts Model instances into the Store at the given index and fires the <a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a> event.
See also <code><a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a></code>.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The start index at which to insert the passed Records.</p>
</div></li><li><span class="pre">records</span> : Ext.data.Model[]<div class="sub-desc"><p>An Array of <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> objects to add to the cache.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-isFiltered" class="member ni"><a href="Ext.data.Store.html#method-isFiltered" rel="method-isFiltered" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-isFiltered" class="viewSource">view source</a></div><a name="isFiltered"></a><a name="method-isFiltered"></a><a href="Ext.data.Store.html#" rel="method-isFiltered" class="cls expand">isFiltered</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this store is currently filtered</p>
</div><div class="long"><p>Returns true if this store is currently filtered</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-isGrouped" class="member ni"><a href="Ext.data.Store.html#method-isGrouped" rel="method-isGrouped" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-isGrouped" class="viewSource">view source</a></div><a name="isGrouped"></a><a name="method-isGrouped"></a><a href="Ext.data.Store.html#" rel="method-isGrouped" class="cls expand">isGrouped</a> : Boolean</div><div class="description"><div class="short"><p>Checks if the store is currently grouped</p>
</div><div class="long"><p>Checks if the store is currently grouped</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the store is grouped.</p>
</li></ul></div></div></div><div id="method-isLoading" class="member inherited"><a href="Ext.data.Store.html#method-isLoading" rel="method-isLoading" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-isLoading" class="viewSource">view source</a></div><a name="isLoading"></a><a name="method-isLoading"></a><a href="Ext.data.Store.html#" rel="method-isLoading" class="cls expand">isLoading</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if the Store is currently performing a load operation</p>
</div><div class="long"><p>Returns true if the Store is currently performing a load operation</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the Store is currently loading</p>
</li></ul></div></div></div><div id="method-last" class="member ni"><a href="Ext.data.Store.html#method-last" rel="method-last" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-last" class="viewSource">view source</a></div><a name="last"></a><a name="method-last"></a><a href="Ext.data.Store.html#" rel="method-last" class="cls expand">last</a>(
<span class="pre">Boolean grouped</span>)
 : Ext.data.Model/undefined</div><div class="description"><div class="short"><p>Convenience function for getting the last model instance in the store</p>
</div><div class="long"><p>Convenience function for getting the last model instance in the store</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
in the store. The value returned will be an object literal with the key being the group
name and the last record being the value. The grouped parameter is only honored if
the store has a groupField.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model/undefined</span>&nbsp; &nbsp;<p>The last model instance in the store, or undefined</p>
</li></ul></div></div></div><div id="method-load" class="member ni"><a href="Ext.data.Store.html#method-load" rel="method-load" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-load" class="viewSource">view source</a></div><a name="load"></a><a name="method-load"></a><a href="Ext.data.Store.html#" rel="method-load" class="cls expand">load</a>(
<span class="pre">Object/Function options</span>)
 : void</div><div class="description"><div class="short">Loads data into the Store via the configured proxy. This uses the Proxy to make an
asynchronous call to whatever stor...</div><div class="long"><p>Loads data into the Store via the configured <a href="Ext.data.Store.html#proxy" rel="Ext.data.Store#proxy" class="docClass">proxy</a>. This uses the Proxy to make an
asynchronous call to whatever storage backend the Proxy uses, automatically adding the retrieved
instances into the Store and calling an optional callback if required. Example usage:</p>




<pre><code>store.load({
    scope   : this,
    callback: function(records, operation, success) {
        //the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">operation</a> object contains all of the details of the load operation
        console.log(records);
    }
});
</code></pre>




<p>If the callback scope does not need to be set, a function can simply be passed:</p>




<pre><code>store.load(function(records, operation, success) {
    console.log('loaded records');
});
</code></pre>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">options</span> : Object/Function<div class="sub-desc"><p>Optional config object, passed into the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object before loading.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-loadData" class="member ni"><a href="Ext.data.Store.html#method-loadData" rel="method-loadData" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-loadData" class="viewSource">view source</a></div><a name="loadData"></a><a name="method-loadData"></a><a href="Ext.data.Store.html#" rel="method-loadData" class="cls expand">loadData</a>(
<span class="pre">Array data, Boolean append</span>)
 : void</div><div class="description"><div class="short"><p>Loads an array of data straight into the Store</p>
</div><div class="long"><p>Loads an array of data straight into the Store</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">data</span> : Array<div class="sub-desc"><p>Array of data to load. Any non-model instances will be cast into model instances first</p>
</div></li><li><span class="pre">append</span> : Boolean<div class="sub-desc"><p>True to add the records to the existing records in the store, false to remove the old ones first</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-loadPage" class="member ni"><a href="Ext.data.Store.html#method-loadPage" rel="method-loadPage" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-loadPage" class="viewSource">view source</a></div><a name="loadPage"></a><a name="method-loadPage"></a><a href="Ext.data.Store.html#" rel="method-loadPage" class="cls expand">loadPage</a>(
<span class="pre">Number page</span>)
 : void</div><div class="description"><div class="short">Loads a given 'page' of data by setting the start and limit values appropriately. Internally this just causes a norma...</div><div class="long"><p>Loads a given 'page' of data by setting the start and limit values appropriately. Internally this just causes a normal
load operation, passing in calculated 'start' and 'limit' params</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">page</span> : Number<div class="sub-desc"><p>The number of the page to load</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-loadRecords" class="member ni"><a href="Ext.data.Store.html#method-loadRecords" rel="method-loadRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-loadRecords" class="viewSource">view source</a></div><a name="loadRecords"></a><a name="method-loadRecords"></a><a href="Ext.data.Store.html#" rel="method-loadRecords" class="cls expand">loadRecords</a>(
<span class="pre">Array records, Object options</span>)
 : void</div><div class="description"><div class="short">Loads an array of {@Ext.data.Model model} instances into the store, fires the datachanged event. This should only usu...</div><div class="long"><p>Loads an array of {@Ext.data.Model model} instances into the store, fires the datachanged event. This should only usually
be called internally when loading from the <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Proxy</a>, when adding records manually use <a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a> instead</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">records</span> : Array<div class="sub-desc"><p>The array of records to load</p>
</div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>{addRecords: true} to add these records to the existing records, false to remove the Store's existing records first</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-max" class="member ni"><a href="Ext.data.Store.html#method-max" rel="method-max" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-max" class="viewSource">view source</a></div><a name="max"></a><a name="method-max"></a><a href="Ext.data.Store.html#" rel="method-max" class="cls expand">max</a>(
<span class="pre">String field, Boolean grouped</span>)
 : Mixed/undefined</div><div class="description"><div class="short"><p>Gets the maximum value in the store.</p>
</div><div class="long"><p>Gets the maximum value in the store.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">field</span> : String<div class="sub-desc"><p>The field in each record</p>
</div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
in the store. The value returned will be an object literal with the key being the group
name and the maximum in the group being the value. The grouped parameter is only honored if
the store has a groupField.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Mixed/undefined</span>&nbsp; &nbsp;<p>The maximum value, if no items exist, undefined.</p>
</li></ul></div></div></div><div id="method-min" class="member ni"><a href="Ext.data.Store.html#method-min" rel="method-min" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-min" class="viewSource">view source</a></div><a name="min"></a><a name="method-min"></a><a href="Ext.data.Store.html#" rel="method-min" class="cls expand">min</a>(
<span class="pre">String field, Boolean grouped</span>)
 : Mixed/undefined</div><div class="description"><div class="short"><p>Gets the minimum value in the store.</p>
</div><div class="long"><p>Gets the minimum value in the store.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">field</span> : String<div class="sub-desc"><p>The field in each record</p>
</div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
in the store. The value returned will be an object literal with the key being the group
name and the minimum in the group being the value. The grouped parameter is only honored if
the store has a groupField.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Mixed/undefined</span>&nbsp; &nbsp;<p>The minimum value, if no items exist, undefined.</p>
</li></ul></div></div></div><div id="method-nextPage" class="member ni"><a href="Ext.data.Store.html#method-nextPage" rel="method-nextPage" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-nextPage" class="viewSource">view source</a></div><a name="nextPage"></a><a name="method-nextPage"></a><a href="Ext.data.Store.html#" rel="method-nextPage" class="cls expand">nextPage</a> : void</div><div class="description"><div class="short"><p>Loads the next 'page' in the current data set</p>
</div><div class="long"><p>Loads the next 'page' in the current data set</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-observe" class="member inherited"><a href="Ext.data.Store.html#method-observe" rel="method-observe" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-observe" class="viewSource">view source</a></div><a name="observe"></a><a name="method-observe"></a><a href="Ext.data.Store.html#" rel="method-observe" class="cls expand">observe</a>(
<span class="pre">Function c, Object listeners</span>)
 : void</div><div class="description"><div class="short">Sets observability on the passed class constructor.

This makes any event fired on any instance of the passed class a...</div><div class="long"><p>Sets observability on the passed class constructor.</p>

<p>This makes any event fired on any instance of the passed class also fire a single event through
the <strong>class</strong> allowing for central handling of events on many instances at once.</p>

<p>Usage:</p>

<pre><code>Ext.util.Observable.observe(Ext.data.Connection);
Ext.data.Connection.on('beforerequest', function(con, options) {
    console.log('Ajax request made to ' + options.url);
});
</code></pre>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">c</span> : Function<div class="sub-desc"><p>The class constructor to make observable.</p>
</div></li><li><span class="pre">listeners</span> : Object<div class="sub-desc"><p>An object containing a series of listeners to add. See <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a>.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-on" class="member inherited"><a href="Ext.data.Store.html#method-on" rel="method-on" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-on" class="viewSource">view source</a></div><a name="on"></a><a name="method-on"></a><a href="Ext.data.Store.html#" rel="method-on" class="cls expand">on</a>(
<span class="pre">String eventName, Function handler, [Object scope], [Object options]</span>)
 : void</div><div class="description"><div class="short"><p>Appends an event handler to this object (shorthand for <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a>.)</p>
</div><div class="long"><p>Appends an event handler to this object (shorthand for <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a>.)</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event to listen for</p>
</div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The method the event invokes</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.
<b>If omitted, defaults to the object which fired the event.</b></p>
</div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>(optional) An object containing handler configuration.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-prefetch" class="member ni"><a href="Ext.data.Store.html#method-prefetch" rel="method-prefetch" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-prefetch" class="viewSource">view source</a></div><a name="prefetch"></a><a name="method-prefetch"></a><a href="Ext.data.Store.html#" rel="method-prefetch" class="cls expand">prefetch</a>(
<span class="pre">Object options</span>)
 : void</div><div class="description"><div class="short"><p>Prefetches data the Store using its configured <a href="Ext.data.Store.html#proxy" rel="Ext.data.Store#proxy" class="docClass">proxy</a>.</p>
</div><div class="long"><p>Prefetches data the Store using its configured <a href="Ext.data.Store.html#proxy" rel="Ext.data.Store#proxy" class="docClass">proxy</a>.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">options</span> : Object<div class="sub-desc"><p>Optional config object, passed into the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object before loading.
See <a href="Ext.data.Store.html#load" rel="Ext.data.Store#load" class="docClass">load</a></p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-prefetchPage" class="member ni"><a href="Ext.data.Store.html#method-prefetchPage" rel="method-prefetchPage" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-prefetchPage" class="viewSource">view source</a></div><a name="prefetchPage"></a><a name="method-prefetchPage"></a><a href="Ext.data.Store.html#" rel="method-prefetchPage" class="cls expand">prefetchPage</a>(
<span class="pre">Number page, Object options, Object </span>)
 : void</div><div class="description"><div class="short"><p>Prefetches a page of data.</p>
</div><div class="long"><p>Prefetches a page of data.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">page</span> : Number<div class="sub-desc"><p>The page to prefetch</p>
</div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>Optional config object, passed into the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object before loading.
See <a href="Ext.data.Store.html#load" rel="Ext.data.Store#load" class="docClass">load</a></p>
</div></li><li><span class="pre"></span> : Object<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-previousPage" class="member ni"><a href="Ext.data.Store.html#method-previousPage" rel="method-previousPage" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-previousPage" class="viewSource">view source</a></div><a name="previousPage"></a><a name="method-previousPage"></a><a href="Ext.data.Store.html#" rel="method-previousPage" class="cls expand">previousPage</a> : void</div><div class="description"><div class="short"><p>Loads the previous 'page' in the current data set</p>
</div><div class="long"><p>Loads the previous 'page' in the current data set</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-purgeRecords" class="member ni"><a href="Ext.data.Store.html#method-purgeRecords" rel="method-purgeRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-purgeRecords" class="viewSource">view source</a></div><a name="purgeRecords"></a><a name="method-purgeRecords"></a><a href="Ext.data.Store.html#" rel="method-purgeRecords" class="cls expand">purgeRecords</a> : void</div><div class="description"><div class="short"><p>Purge the least recently used records in the prefetch if the purgeCount
has been exceeded.</p>
</div><div class="long"><p>Purge the least recently used records in the prefetch if the purgeCount
has been exceeded.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-queryBy" class="member ni"><a href="Ext.data.Store.html#method-queryBy" rel="method-queryBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-queryBy" class="viewSource">view source</a></div><a name="queryBy"></a><a name="method-queryBy"></a><a href="Ext.data.Store.html#" rel="method-queryBy" class="cls expand">queryBy</a>(
<span class="pre">Function fn, [Object scope]</span>)
 : MixedCollection</div><div class="description"><div class="short">Query the cached records in this Store using a filtering function. The specified function
will be called with each re...</div><div class="long"><p>Query the cached records in this Store using a filtering function. The specified function
will be called with each record in this Store. If the function returns <tt>true</tt> the record is
included in the results.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to be called. It will be passed the following parameters:<ul>
<li><b>record</b> : Ext.data.Model<p class="sub-desc">The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a>
to test for filtering. Access field values using <a href="Ext.data.Model.html#get" rel="Ext.data.Model#get" class="docClass">Ext.data.Model.get</a>.</p></li>
<li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
</ul></p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to this Store.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">MixedCollection</span>&nbsp; &nbsp;<p>Returns an <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">Ext.util.MixedCollection</a> of the matched records</p>
</li></ul></div></div></div><div id="method-relayEvents" class="member inherited"><a href="Ext.data.Store.html#method-relayEvents" rel="method-relayEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-relayEvents" class="viewSource">view source</a></div><a name="relayEvents"></a><a name="method-relayEvents"></a><a href="Ext.data.Store.html#" rel="method-relayEvents" class="cls expand">relayEvents</a>(
<span class="pre">Object origin, Array events, Object prefix</span>)
 : void</div><div class="description"><div class="short"><p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>
</div><div class="long"><p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">origin</span> : Object<div class="sub-desc"><p>The Observable whose events this object is to relay.</p>
</div></li><li><span class="pre">events</span> : Array<div class="sub-desc"><p>Array of event names to relay.</p>
</div></li><li><span class="pre">prefix</span> : Object<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-releaseCapture" class="member inherited"><a href="Ext.data.Store.html#method-releaseCapture" rel="method-releaseCapture" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-releaseCapture" class="viewSource">view source</a></div><a name="releaseCapture"></a><a name="method-releaseCapture"></a><a href="Ext.data.Store.html#" rel="method-releaseCapture" class="cls expand">releaseCapture</a>(
<span class="pre">Observable o</span>)
 : void</div><div class="description"><div class="short"><p>Removes <b>all</b> added captures from the Observable.</p>
</div><div class="long"><p>Removes <b>all</b> added captures from the Observable.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Observable<div class="sub-desc"><p>The Observable to release</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-remove" class="member ni"><a href="Ext.data.Store.html#method-remove" rel="method-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="method-remove"></a><a href="Ext.data.Store.html#" rel="method-remove" class="cls expand">remove</a>(
<span class="pre">Ext.data.Model/Array records, Object isMove</span>)
 : void</div><div class="description"><div class="short">Removes the given record from the Store, firing the 'remove' event for each instance that is removed, plus a single
'...</div><div class="long"><p>Removes the given record from the Store, firing the 'remove' event for each instance that is removed, plus a single
'datachanged' event after removal.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">records</span> : Ext.data.Model/Array<div class="sub-desc"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> instance or array of instances to remove</p>
</div></li><li><span class="pre">isMove</span> : Object<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-removeAll" class="member ni"><a href="Ext.data.Store.html#method-removeAll" rel="method-removeAll" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-removeAll" class="viewSource">view source</a></div><a name="removeAll"></a><a name="method-removeAll"></a><a href="Ext.data.Store.html#" rel="method-removeAll" class="cls expand">removeAll</a>(
<span class="pre">Boolean silent</span>)
 : void</div><div class="description"><div class="short"><p>Remove all items from the store.</p>
</div><div class="long"><p>Remove all items from the store.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">silent</span> : Boolean<div class="sub-desc"><p>Prevent the <code>clear</code> event from being fired.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-removeAt" class="member ni"><a href="Ext.data.Store.html#method-removeAt" rel="method-removeAt" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-removeAt" class="viewSource">view source</a></div><a name="removeAt"></a><a name="method-removeAt"></a><a href="Ext.data.Store.html#" rel="method-removeAt" class="cls expand">removeAt</a>(
<span class="pre">Number index</span>)
 : void</div><div class="description"><div class="short"><p>Removes the model instance at the given index</p>
</div><div class="long"><p>Removes the model instance at the given index</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The record index</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-removeListener" class="member inherited"><a href="Ext.data.Store.html#method-removeListener" rel="method-removeListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-removeListener" class="viewSource">view source</a></div><a name="removeListener"></a><a name="method-removeListener"></a><a href="Ext.data.Store.html#" rel="method-removeListener" class="cls expand">removeListener</a>(
<span class="pre">String eventName, Function handler, [Object scope]</span>)
 : void</div><div class="description"><div class="short"><p>Removes an event handler.</p>
</div><div class="long"><p>Removes an event handler.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event the handler was associated with.</p>
</div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The handler to remove. <b>This must be a reference to the function passed into the <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a> call.</b></p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope originally specified for the handler.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-removeManagedListener" class="member inherited"><a href="Ext.data.Store.html#method-removeManagedListener" rel="method-removeManagedListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-removeManagedListener" class="viewSource">view source</a></div><a name="removeManagedListener"></a><a name="method-removeManagedListener"></a><a href="Ext.data.Store.html#" rel="method-removeManagedListener" class="cls expand">removeManagedListener</a>(
<span class="pre">Observable|Element item, Object|String ename, Function fn, Object scope</span>)
 : void</div><div class="description"><div class="short"><p>Removes listeners that were added by the <a href="Ext.data.Store.html#mon" rel="Ext.data.Store#mon" class="docClass">mon</a> method.</p>
</div><div class="long"><p>Removes listeners that were added by the <a href="Ext.data.Store.html#mon" rel="Ext.data.Store#mon" class="docClass">mon</a> method.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Observable|Element<div class="sub-desc"><p>The item from which to remove a listener/listeners.</p>
</div></li><li><span class="pre">ename</span> : Object|String<div class="sub-desc"><p>The event name, or an object containing event name properties.</p>
</div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the handler function.</p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
is the scope (<code>this</code> reference) in which the handler function is executed.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-resumeEvents" class="member inherited"><a href="Ext.data.Store.html#method-resumeEvents" rel="method-resumeEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-resumeEvents" class="viewSource">view source</a></div><a name="resumeEvents"></a><a name="method-resumeEvents"></a><a href="Ext.data.Store.html#" rel="method-resumeEvents" class="cls expand">resumeEvents</a> : void</div><div class="description"><div class="short">Resume firing events. (see suspendEvents)
If events were suspended using the queueSuspended parameter, then all
event...</div><div class="long"><p>Resume firing events. (see <a href="Ext.data.Store.html#suspendEvents" rel="Ext.data.Store#suspendEvents" class="docClass">suspendEvents</a>)
If events were suspended using the <code><b>queueSuspended</b></code> parameter, then all
events fired during event suspension will be sent to any listeners now.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-setProxy" class="member inherited"><a href="Ext.data.Store.html#method-setProxy" rel="method-setProxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-setProxy" class="viewSource">view source</a></div><a name="setProxy"></a><a name="method-setProxy"></a><a href="Ext.data.Store.html#" rel="method-setProxy" class="cls expand">setProxy</a>(
<span class="pre">String|Object|Ext.data.proxy.Proxy proxy</span>)
 : Ext.data.proxy.Proxy</div><div class="description"><div class="short"><p>Sets the Store's Proxy by string, config object or Proxy instance</p>
</div><div class="long"><p>Sets the Store's Proxy by string, config object or Proxy instance</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">proxy</span> : String|Object|Ext.data.proxy.Proxy<div class="sub-desc"><p>The new Proxy, which can be either a type string, a configuration object
or an <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Ext.data.proxy.Proxy</a> instance</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.proxy.Proxy</span>&nbsp; &nbsp;<p>The attached Proxy object</p>
</li></ul></div></div></div><div id="method-sort" class="member inherited"><a href="Ext.data.Store.html#method-sort" rel="method-sort" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-sort" class="viewSource">view source</a></div><a name="sort"></a><a name="method-sort"></a><a href="Ext.data.Store.html#" rel="method-sort" class="cls expand">sort</a>(
<span class="pre">String|Array sorters, String direction, Object where, Object doSort</span>)
 : void</div><div class="description"><div class="short">Sorts the data in the Store by one or more of its properties. Example usage:


//sort by a single field
myStore.sort(...</div><div class="long"><p>Sorts the data in the Store by one or more of its properties. Example usage:</p>


<pre><code>//sort by a single field
myStore.sort('myField', 'DESC');

//sorting by multiple fields
myStore.sort([
    {
        property : 'age',
        direction: 'ASC'
    },
    {
        property : 'name',
        direction: 'DESC'
    }
]);
</code></pre>


<p>Internally, Store converts the passed arguments into an array of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Ext.util.Sorter</a> instances, and delegates the actual
sorting to its internal <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">Ext.util.MixedCollection</a>.</p>


<p>When passing a single string argument to sort, Store maintains a ASC/DESC toggler per field, so this code:</p>


<pre><code>store.sort('myField');
store.sort('myField');
     </code></pre>


<p>Is equivalent to this code, because Store handles the toggling automatically:</p>


<pre><code>store.sort('myField', 'ASC');
store.sort('myField', 'DESC');
</code></pre>

<h3 class="pa">Parameters</h3><ul><li><span class="pre">sorters</span> : String|Array<div class="sub-desc"><p>Either a string name of one of the fields in this Store's configured <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a>,
or an Array of sorter configurations.</p>
</div></li><li><span class="pre">direction</span> : String<div class="sub-desc"><p>The overall direction to sort the data by. Defaults to "ASC".</p>
</div></li><li><span class="pre">where</span> : Object<div class="sub-desc">
</div></li><li><span class="pre">doSort</span> : Object<div class="sub-desc">
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-sum" class="member ni"><a href="Ext.data.Store.html#method-sum" rel="method-sum" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-sum" class="viewSource">view source</a></div><a name="sum"></a><a name="method-sum"></a><a href="Ext.data.Store.html#" rel="method-sum" class="cls expand">sum</a>(
<span class="pre">String field, Boolean grouped</span>)
 : Number</div><div class="description"><div class="short"><p>Sums the value of <tt>property</tt> for each <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a> between <tt>start</tt>
and <tt>end</tt> and returns the result.</p>
</div><div class="long"><p>Sums the value of <tt>property</tt> for each <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a> between <tt>start</tt>
and <tt>end</tt> and returns the result.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">field</span> : String<div class="sub-desc"><p>A field in each record</p>
</div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
in the store. The value returned will be an object literal with the key being the group
name and the sum for that group being the value. The grouped parameter is only honored if
the store has a groupField.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The sum</p>
</li></ul></div></div></div><div id="method-suspendEvents" class="member inherited"><a href="Ext.data.Store.html#method-suspendEvents" rel="method-suspendEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-suspendEvents" class="viewSource">view source</a></div><a name="suspendEvents"></a><a name="method-suspendEvents"></a><a href="Ext.data.Store.html#" rel="method-suspendEvents" class="cls expand">suspendEvents</a>(
<span class="pre">Boolean queueSuspended</span>)
 : void</div><div class="description"><div class="short"><p>Suspend the firing of all events. (see <a href="Ext.data.Store.html#resumeEvents" rel="Ext.data.Store#resumeEvents" class="docClass">resumeEvents</a>)</p>
</div><div class="long"><p>Suspend the firing of all events. (see <a href="Ext.data.Store.html#resumeEvents" rel="Ext.data.Store#resumeEvents" class="docClass">resumeEvents</a>)</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">queueSuspended</span> : Boolean<div class="sub-desc"><p>Pass as true to queue up suspended events to be fired
after the <a href="Ext.data.Store.html#resumeEvents" rel="Ext.data.Store#resumeEvents" class="docClass">resumeEvents</a> call instead of discarding all suspended events;</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-sync" class="member inherited"><a href="Ext.data.Store.html#method-sync" rel="method-sync" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-sync" class="viewSource">view source</a></div><a name="sync"></a><a name="method-sync"></a><a href="Ext.data.Store.html#" rel="method-sync" class="cls expand">sync</a> : void</div><div class="description"><div class="short">Synchronizes the Store with its Proxy. This asks the Proxy to batch together any new, updated
and deleted records in ...</div><div class="long"><p>Synchronizes the Store with its Proxy. This asks the Proxy to batch together any new, updated
and deleted records in the store, updating the Store's internal representation of the records
as each operation completes.</p>
<h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div><div id="method-un" class="member inherited"><a href="Ext.data.Store.html#method-un" rel="method-un" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-un" class="viewSource">view source</a></div><a name="un"></a><a name="method-un"></a><a href="Ext.data.Store.html#" rel="method-un" class="cls expand">un</a>(
<span class="pre">String eventName, Function handler, [Object scope]</span>)
 : void</div><div class="description"><div class="short"><p>Removes an event handler (shorthand for <a href="Ext.data.Store.html#removeListener" rel="Ext.data.Store#removeListener" class="docClass">removeListener</a>.)</p>
</div><div class="long"><p>Removes an event handler (shorthand for <a href="Ext.data.Store.html#removeListener" rel="Ext.data.Store#removeListener" class="docClass">removeListener</a>.)</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event the handler was associated with.</p>
</div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The handler to remove. <b>This must be a reference to the function passed into the <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a> call.</b></p>
</div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope originally specified for the handler.</p>
</div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
</li></ul></div></div></div></div><div class="m-events"><a name="events"></a><div class="definedBy">Defined By</div><h3 class="evt p">Events</h3><div id="event-add" class="member f inherited"><a href="Ext.data.Store.html#event-add" rel="event-add" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-add" class="viewSource">view source</a></div><a name="add"></a><a name="event-add"></a><a href="Ext.data.Store.html#" rel="event-add" class="cls expand">add</a>(
<span class="pre">Ext.data.Store store, Array records, Number index</span>)
</div><div class="description"><div class="short"><p>Fired when a Model instance has been added to this Store</p>
</div><div class="long"><p>Fired when a Model instance has been added to this Store</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>The store</p>
</div></li><li><span class="pre">records</span> : Array<div class="sub-desc"><p>The Model instances that were added</p>
</div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index at which the instances were inserted</p>
</div></li></ul></div></div></div><div id="event-beforeload" class="member inherited"><a href="Ext.data.Store.html#event-beforeload" rel="event-beforeload" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-beforeload" class="viewSource">view source</a></div><a name="beforeload"></a><a name="event-beforeload"></a><a href="Ext.data.Store.html#" rel="event-beforeload" class="cls expand">beforeload</a>(
<span class="pre">Ext.data.Store store, Ext.data.Operation operation</span>)
</div><div class="description"><div class="short"><p>Event description</p>
</div><div class="long"><p>Event description</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>This Store</p>
</div></li><li><span class="pre">operation</span> : Ext.data.Operation<div class="sub-desc"><p>The <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object that will be passed to the Proxy to load the Store</p>
</div></li></ul></div></div></div><div id="event-beforeprefetch" class="member ni"><a href="Ext.data.Store.html#event-beforeprefetch" rel="event-beforeprefetch" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-event-beforeprefetch" class="viewSource">view source</a></div><a name="beforeprefetch"></a><a name="event-beforeprefetch"></a><a href="Ext.data.Store.html#" rel="event-beforeprefetch" class="cls expand">beforeprefetch</a>(
<span class="pre">Ext.data.store this, Ext.data.Operation operation</span>)
</div><div class="description"><div class="short"><p>Fires before a prefetch occurs. Return false to cancel.</p>
</div><div class="long"><p>Fires before a prefetch occurs. Return false to cancel.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.store<div class="sub-desc">
</div></li><li><span class="pre">operation</span> : Ext.data.Operation<div class="sub-desc"><p>The associated operation</p>
</div></li></ul></div></div></div><div id="event-beforesync" class="member inherited"><a href="Ext.data.Store.html#event-beforesync" rel="event-beforesync" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-beforesync" class="viewSource">view source</a></div><a name="beforesync"></a><a name="event-beforesync"></a><a href="Ext.data.Store.html#" rel="event-beforesync" class="cls expand">beforesync</a>(
<span class="pre">Object options</span>)
</div><div class="description"><div class="short"><p>Called before a call to <a href="Ext.data.Store.html#sync" rel="Ext.data.Store#sync" class="docClass">sync</a> is executed. Return false from any listener to cancel the synv</p>
</div><div class="long"><p>Called before a call to <a href="Ext.data.Store.html#sync" rel="Ext.data.Store#sync" class="docClass">sync</a> is executed. Return false from any listener to cancel the synv</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">options</span> : Object<div class="sub-desc"><p>Hash of all records to be synchronized, broken down into create, update and destroy</p>
</div></li></ul></div></div></div><div id="event-clear" class="member inherited"><a href="Ext.data.Store.html#event-clear" rel="event-clear" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-clear" class="viewSource">view source</a></div><a name="clear"></a><a name="event-clear"></a><a href="Ext.data.Store.html#" rel="event-clear" class="cls expand">clear</a>(
<span class="pre">Ext.data.Store this</span>)
</div><div class="description"><div class="short"><p>Fired after the <a href="Ext.data.Store.html#removeAll" rel="Ext.data.Store#removeAll" class="docClass">removeAll</a> method is called.</p>
</div><div class="long"><p>Fired after the <a href="Ext.data.Store.html#removeAll" rel="Ext.data.Store#removeAll" class="docClass">removeAll</a> method is called.</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.Store<div class="sub-desc">
</div></li></ul></div></div></div><div id="event-datachanged" class="member inherited"><a href="Ext.data.Store.html#event-datachanged" rel="event-datachanged" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-datachanged" class="viewSource">view source</a></div><a name="datachanged"></a><a name="event-datachanged"></a><a href="Ext.data.Store.html#" rel="event-datachanged" class="cls expand">datachanged</a>(
<span class="pre">Ext.data.Store this</span>)
</div><div class="description"><div class="short">Fires whenever the records in the Store have changed in some way - this could include adding or removing records,
or ...</div><div class="long"><p>Fires whenever the records in the Store have changed in some way - this could include adding or removing records,
or updating the data in existing records</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.Store<div class="sub-desc"><p>The data store</p>
</div></li></ul></div></div></div><div id="event-groupchange" class="member ni"><a href="Ext.data.Store.html#event-groupchange" rel="event-groupchange" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-event-groupchange" class="viewSource">view source</a></div><a name="groupchange"></a><a name="event-groupchange"></a><a href="Ext.data.Store.html#" rel="event-groupchange" class="cls expand">groupchange</a>(
<span class="pre">Ext.data.Store store, Array groupers</span>)
</div><div class="description"><div class="short"><p>Fired whenever the grouping in the grid changes</p>
</div><div class="long"><p>Fired whenever the grouping in the grid changes</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>The store</p>
</div></li><li><span class="pre">groupers</span> : Array<div class="sub-desc"><p>The array of grouper objects</p>
</div></li></ul></div></div></div><div id="event-load" class="member ni"><a href="Ext.data.Store.html#event-load" rel="event-load" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-event-load" class="viewSource">view source</a></div><a name="load"></a><a name="event-load"></a><a href="Ext.data.Store.html#" rel="event-load" class="cls expand">load</a>(
<span class="pre">Ext.data.store this, Array records, Boolean successful, Ext.data.Operation operation</span>)
</div><div class="description"><div class="short"><p>Fires whenever records have been prefetched</p>
</div><div class="long"><p>Fires whenever records have been prefetched</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.store<div class="sub-desc">
</div></li><li><span class="pre">records</span> : Array<div class="sub-desc"><p>An array of records</p>
</div></li><li><span class="pre">successful</span> : Boolean<div class="sub-desc"><p>True if the operation was successful.</p>
</div></li><li><span class="pre">operation</span> : Ext.data.Operation<div class="sub-desc"><p>The associated operation</p>
</div></li></ul></div></div></div><div id="event-remove" class="member inherited"><a href="Ext.data.Store.html#event-remove" rel="event-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="event-remove"></a><a href="Ext.data.Store.html#" rel="event-remove" class="cls expand">remove</a>(
<span class="pre">Ext.data.Store store, Ext.data.Model record, Number index</span>)
</div><div class="description"><div class="short"><p>Fired when a Model instance has been removed from this Store</p>
</div><div class="long"><p>Fired when a Model instance has been removed from this Store</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>The Store object</p>
</div></li><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The record that was removed</p>
</div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index of the record that was removed</p>
</div></li></ul></div></div></div><div id="event-update" class="member inherited"><a href="Ext.data.Store.html#event-update" rel="event-update" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-update" class="viewSource">view source</a></div><a name="update"></a><a name="event-update"></a><a href="Ext.data.Store.html#" rel="event-update" class="cls expand">update</a>(
<span class="pre">Store this, Ext.data.Model record, String operation</span>)
</div><div class="description"><div class="short"><p>Fires when a Record has been updated</p>
</div><div class="long"><p>Fires when a Record has been updated</p>
<h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Store<div class="sub-desc">
</div></li><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The Model instance that was updated</p>
</div></li><li><span class="pre">operation</span> : String<div class="sub-desc"><p>The update operation being performed. Value may be one of:</p>

<pre><code>               Ext.data.Model.EDIT
               Ext.data.Model.REJECT
               Ext.data.Model.COMMIT
</code></pre>

</div></li></ul></div></div></div></div></div></div></div><div id="pageContent"></div></div></div></div></body></html>